diff --git a/ts/components/session/SessionSeedModal.tsx b/ts/components/session/SessionSeedModal.tsx index e89653741..adfcb63b6 100644 --- a/ts/components/session/SessionSeedModal.tsx +++ b/ts/components/session/SessionSeedModal.tsx @@ -145,7 +145,7 @@ export class SessionSeedModal extends React.Component { private confirmPassword() { const passwordHash = this.state.passwordHash; - const passwordValue = ($('#seed-input-password') as any).val(); + const passwordValue = jQuery('#seed-input-password').val(); const isPasswordValid = window.passwordUtil.matchesHash( passwordValue, passwordHash diff --git a/ts/components/session/settings/SessionSettings.tsx b/ts/components/session/settings/SessionSettings.tsx index e285e84ce..c73b0d8ad 100644 --- a/ts/components/session/settings/SessionSettings.tsx +++ b/ts/components/session/settings/SessionSettings.tsx @@ -198,7 +198,7 @@ export class SettingsView extends React.Component { } public async validatePasswordLock() { - const enteredPassword = String(($('#password-lock-input') as any).val()); + const enteredPassword = String(jQuery('#password-lock-input').val()); if (!enteredPassword) { this.setState({ @@ -265,9 +265,9 @@ export class SettingsView extends React.Component { } public setOptionsSetting(settingID: string) { - const selectedValue = ($( + const selectedValue = jQuery( `#${settingID} .session-radio input:checked` - ) as any).val(); + ).val(); window.setSettingValue(settingID, selectedValue); }