mirror of
https://github.com/standardnotes/mobile.git
synced 2026-02-06 14:01:46 -05:00
fix: clear mfa code after failure
This commit is contained in:
@@ -115,6 +115,7 @@ export const AuthSection = (props: Props) => {
|
||||
result?.error.tag === 'mfa-invalid'
|
||||
) {
|
||||
setMfa(result?.error);
|
||||
setMfaCode('');
|
||||
} else if (result?.error.message) {
|
||||
application?.alertService?.alert(result?.error.message, 'Oops', 'OK');
|
||||
setMfa(undefined);
|
||||
|
||||
Reference in New Issue
Block a user