diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MFASection.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MFASection.tsx index a23d3e8f9..492e30ac8 100644 --- a/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MFASection.tsx +++ b/frontend/src/pages/user/PersonalSettingsPage/components/SecuritySection/MFASection.tsx @@ -143,7 +143,7 @@ export const MFASection = () => { setTotpCode(""); setShouldShowRecoveryCodes.off(); if (totpConfiguration?.isVerified) { - deleteTotpConfiguration().catch(console.error); + await deleteTotpConfiguration().catch(console.error); } } else if (field === "isMfaEnabled" && value && formData.selectedMfaMethod === MfaMethod.TOTP) { setShowMobileAuthSetup(true);