From c2cddbf63346cba004f105a2df0ddb30f049290f Mon Sep 17 00:00:00 2001 From: mrsrec Date: Sat, 27 May 2023 22:27:37 -0700 Subject: [PATCH] Fix cookie expiring in session --- src/components/privacy-banner/privacy-banner.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/privacy-banner/privacy-banner.jsx b/src/components/privacy-banner/privacy-banner.jsx index 024e97c67..39a5d6086 100644 --- a/src/components/privacy-banner/privacy-banner.jsx +++ b/src/components/privacy-banner/privacy-banner.jsx @@ -35,7 +35,7 @@ class PrivacyBanner extends React.Component { handleCloseBanner () { const opts = { - expires: new Date(new Date().setDate(new Date().getDate + 21)) // expires after 3 weeks + expires: new Date(new Date().setDate(new Date().getDate() + 21)) // expires after 3 weeks }; this.setState({dismissedPrivacyBanner: true}); jar.set('scratchpolicyseen', true, opts);