feat: add webpush and sadhna tracker
This commit is contained in:
@@ -72,6 +72,9 @@ export function AuthGateProvider({ children }: { children: React.ReactNode }) {
|
||||
if (user && (open || resolversRef.current.length > 0)) {
|
||||
const pending = resolversRef.current;
|
||||
resolversRef.current = [];
|
||||
// Intentional: react to the user becoming authenticated by closing the
|
||||
// gate and resolving the queued promises.
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
setOpen(false);
|
||||
pending.forEach((r) => r(true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user