Skip to content

Commit

Permalink
fix: Dont reset form fields on error
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Oct 20, 2023
1 parent 5406014 commit 5615d17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/components/settings/SignerAccountMFA/PasswordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export const PasswordForm = () => {
if (!mpcCoreKit) return

await enableMFA(dispatch, mpcCoreKit, data)
onReset()
}

const onReset = () => {
Expand Down
1 change: 1 addition & 0 deletions src/components/settings/SignerAccountMFA/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const enableMFA = async (
const error = asError(e)
logError(ErrorCodes._304, error.message)

// TODO: Check if we should use a notification or show an error inside the form
dispatch(
showNotification({
variant: 'error',
Expand Down

0 comments on commit 5615d17

Please sign in to comment.