From 405a16b8bebd57dbd72022f8e4ff573f5c2da9e4 Mon Sep 17 00:00:00 2001 From: Radek Czemerys Date: Mon, 24 Aug 2020 20:25:02 +0200 Subject: [PATCH] fix: clear mfa code after failure --- src/screens/Settings/Sections/AuthSection.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/screens/Settings/Sections/AuthSection.tsx b/src/screens/Settings/Sections/AuthSection.tsx index 5f2afc22..b848fb25 100644 --- a/src/screens/Settings/Sections/AuthSection.tsx +++ b/src/screens/Settings/Sections/AuthSection.tsx @@ -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);