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]);
|
||||
|
||||
useEffect(() => {
|
||||
if (pendingPolicy && supportedPolicyIds.includes(pendingPolicy.pending_policy_id)) {
|
||||
dispatch(openModal('POLICY'));
|
||||
if (account && pendingPolicy && supportedPolicyIds.includes(pendingPolicy.pending_policy_id)) {
|
||||
setTimeout(() => {
|
||||
dispatch(openModal('POLICY'));
|
||||
}, 500);
|
||||
}
|
||||
}, [pendingPolicy]);
|
||||
}, [pendingPolicy, !!account]);
|
||||
|
||||
const handleHotkeyNew = (e?: KeyboardEvent) => {
|
||||
e?.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue