mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: use full page reload after consent to avoid AuthGuard race condition
This commit is contained in:
@@ -30,12 +30,12 @@ export function AnalyticsConsentPage() {
|
||||
|
||||
const handleAccept = async () => {
|
||||
await acceptAnalytics();
|
||||
navigate("/", { replace: true });
|
||||
window.location.href = "/";
|
||||
};
|
||||
|
||||
const handleDecline = async () => {
|
||||
await remindLater();
|
||||
navigate("/", { replace: true });
|
||||
window.location.href = "/";
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user