Ensure Policy Modal opens upon login
This commit is contained in:
parent
53208bd670
commit
472df260fe
1 changed files with 5 additions and 3 deletions
|
@ -504,10 +504,12 @@ const UI: React.FC = ({ children }) => {
|
||||||
}, [vapidKey]);
|
}, [vapidKey]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (pendingPolicy && supportedPolicyIds.includes(pendingPolicy.pending_policy_id)) {
|
if (account && pendingPolicy && supportedPolicyIds.includes(pendingPolicy.pending_policy_id)) {
|
||||||
dispatch(openModal('POLICY'));
|
setTimeout(() => {
|
||||||
|
dispatch(openModal('POLICY'));
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}, [pendingPolicy]);
|
}, [pendingPolicy, !!account]);
|
||||||
|
|
||||||
const handleHotkeyNew = (e?: KeyboardEvent) => {
|
const handleHotkeyNew = (e?: KeyboardEvent) => {
|
||||||
e?.preventDefault();
|
e?.preventDefault();
|
||||||
|
|
Loading…
Reference in a new issue