Skip to content

Commit

Permalink
fix(editor): Make submit in ChangePasswordView work again (#11227)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Oct 11, 2024
1 parent 0d23a7f commit 4f27b39
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/editor-ui/src/views/ChangePasswordView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ const getMfaEnabled = () => {
return router.currentRoute.value.query.mfaEnabled === 'true' ? true : false;
};
const isFormWithMFAToken = (values: { [key: string]: string }): values is { mfaToken: string } => {
return 'mfaToken' in values;
};
const onSubmit = async (values: { [key: string]: string }) => {
if (!isFormWithMFAToken(values)) return;
try {
loading.value = true;
const token = getResetToken();
Expand Down

0 comments on commit 4f27b39

Please sign in to comment.