Fix a typescript issue with catch variable type

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-09-29 18:20:33 +02:00
parent 7bf745edf7
commit dc52cd042b
27 changed files with 87 additions and 75 deletions

View File

@@ -303,7 +303,7 @@ export default class AccountSettings extends Vue {
);
this.newEmail = "";
this.passwordForEmailChange = "";
} catch (err) {
} catch (err: any) {
this.handleErrors("email", err);
}
}
@@ -325,7 +325,7 @@ export default class AccountSettings extends Vue {
this.$notifier.success(
this.$t("The password was successfully changed") as string
);
} catch (err) {
} catch (err: any) {
this.handleErrors("password", err);
}
}
@@ -359,7 +359,7 @@ export default class AccountSettings extends Vue {
});
return await this.$router.push({ name: RouteName.HOME });
} catch (err) {
} catch (err: any) {
this.deletePasswordErrors = err.graphQLErrors.map(
({ message }: GraphQLError) => message
);