updated isTwoFactorEnabled in localDB
This commit is contained in:
parent
6b5b513f6a
commit
e8c068e2cc
|
@ -41,6 +41,7 @@ function TwoFactorModal(props: Props) {
|
|||
const main = async () => {
|
||||
const isTwoFactorEnabled = await getTwoFactorStatus();
|
||||
setTwoFactorStatus(isTwoFactorEnabled);
|
||||
setData(LS_KEYS.USER, { ...getData(LS_KEYS.USER), isTwoFactorEnabled: false });
|
||||
};
|
||||
main();
|
||||
}, [props.show]);
|
||||
|
|
Loading…
Reference in a new issue