fix remaining eslint error

This commit is contained in:
DaneEveritt 2022-06-26 15:30:05 -04:00
parent dc84af9937
commit 922d75f471
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
15 changed files with 30 additions and 28 deletions

View file

@ -77,7 +77,7 @@ const EnhancedForm = withFormik<Props, Values>({
loginCheckpoint(location.state?.token || '', code, recoveryCode)
.then((response) => {
if (response.complete) {
// @ts-ignore
// @ts-expect-error this is valid
window.location = response.intended || '/';
return;
}

View file

@ -46,7 +46,7 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
login({ ...values, recaptchaData: token })
.then((response) => {
if (response.complete) {
// @ts-ignore
// @ts-expect-error this is valid
window.location = response.intended || '/';
return;
}

View file

@ -33,7 +33,7 @@ export default ({ match, location }: RouteComponentProps<{ token: string }>) =>
clearFlashes();
performPasswordReset(email, { token: match.params.token, password, passwordConfirmation })
.then(() => {
// @ts-ignore
// @ts-expect-error this is valid
window.location = '/';
})
.catch((error) => {
@ -57,7 +57,7 @@ export default ({ match, location }: RouteComponentProps<{ token: string }>) =>
.min(8, 'Your new password should be at least 8 characters in length.'),
passwordConfirmation: string()
.required('Your new password does not match.')
// @ts-ignore
// @ts-expect-error this is valid
.oneOf([ref('password'), null], 'Your new password does not match.'),
})}
>