The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update provider.tsx
Steven Tey49caf0a58f6e
diff --git a/apps/web/ui/modals/provider.tsx b/apps/web/ui/modals/provider.tsxindex 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([]);});}