Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update provider.tsx

Steven Tey49caf0a58f6e
diff --git a/apps/web/ui/modals/provider.tsx b/apps/web/ui/modals/provider.tsx
index c6a3901b6f..daaad53a5a 100644
--- a/apps/web/ui/modals/provider.tsx
+++ b/apps/web/ui/modals/provider.tsx
@@ -60,10 +60,7 @@ export default function ModalProvider({ children }: { children: ReactNode }) {
const { slug } = params;
const [hashes, setHashes] = useCookies<SimpleLinkProps[]>("hashes__dub", [], {
- httpOnly: true,
- sameSite: "lax",
domain: !!process.env.NEXT_PUBLIC_VERCEL_URL ? ".dub.co" : undefined,
- secure: !!process.env.NEXT_PUBLIC_VERCEL_URL,
});
useEffect(() => {
@@ -83,6 +80,7 @@ export default function ModalProvider({ children }: { children: ReactNode }) {
);
toast.success("Links imported successfully!");
}
+ console.log("resetting hashes");
setHashes([]);
});
}