mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 13:26:02 +00:00
Fix missing await
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ export const MFASection = () => {
|
|||||||
setTotpCode("");
|
setTotpCode("");
|
||||||
setShouldShowRecoveryCodes.off();
|
setShouldShowRecoveryCodes.off();
|
||||||
if (totpConfiguration?.isVerified) {
|
if (totpConfiguration?.isVerified) {
|
||||||
deleteTotpConfiguration().catch(console.error);
|
await deleteTotpConfiguration().catch(console.error);
|
||||||
}
|
}
|
||||||
} else if (field === "isMfaEnabled" && value && formData.selectedMfaMethod === MfaMethod.TOTP) {
|
} else if (field === "isMfaEnabled" && value && formData.selectedMfaMethod === MfaMethod.TOTP) {
|
||||||
setShowMobileAuthSetup(true);
|
setShowMobileAuthSetup(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user