hide qr code until refreshed

This commit is contained in:
balzack 2024-05-18 08:53:54 -07:00
parent 0960c00c72
commit 03ba44a84b

View File

@ -59,7 +59,6 @@ export function useSettings() {
mfaModal: false, mfaModal: false,
mfaEnabled: false, mfaEnabled: false,
mfaSecret: false,
mfaError: null, mfaError: null,
mfaCode: '', mfaCode: '',
mfaText: null, mfaText: null,
@ -384,7 +383,7 @@ export function useSettings() {
} }
}, },
enableMFA: async () => { enableMFA: async () => {
updateState({ mfaModal: true, mfaSecret: false, mfaCode: '' }); updateState({ mfaModal: true, mfaImage: null, mfaText: null, mfaCode: '' });
const mfa = await account.actions.enableMFA(); const mfa = await account.actions.enableMFA();
updateState({ mfaImage: mfa.secretImage, mfaText: mfa.secretText }); updateState({ mfaImage: mfa.secretImage, mfaText: mfa.secretText });
}, },