Merge pull request #7629 from mrsrec/patch-1

Fix cookie expiring in session
This commit is contained in:
Andy O'Neill 2023-06-05 17:15:58 -04:00 committed by GitHub
commit 0ef4c11eb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);