Client:Profile:Section:Body:LoginSettings: change location.state to sessionStorage
This commit is contained in:
parent
0a6e722f64
commit
3daea85546
@ -57,8 +57,9 @@ const LoginSettings = (props) => {
|
|||||||
useState(false);
|
useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (location?.state?.openBackupCodesDialog) {
|
if (sessionStorage.getItem("openBackupCodesDialog")) {
|
||||||
setBackupCodesDialogVisible(true);
|
setBackupCodesDialogVisible(true);
|
||||||
|
sessionStorage.removeItem("openBackupCodesDialog");
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user