updated isTwoFactorEnabled in localDB

This commit is contained in:
Abhinav-grd 2021-06-29 19:53:10 +05:30
parent 6b5b513f6a
commit e8c068e2cc

View file

@ -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]);