Skip to content

Commit

Permalink
Merge pull request #497 from kipr/fix-eula-bug-existing-users
Browse files Browse the repository at this point in the history
Fix EULA bug for existing users
  • Loading branch information
tcorbly authored Oct 30, 2024
2 parents 5e90c6c + 07bc1fd commit e352be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parentalConsent.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function createRouter(firebaseTokenManager, mailgunClient, config) {

const now = Date.now();
let expiresAt = null;
if (currentConsent?.legalAcceptance === null) {
if (!currentConsent?.legalAcceptance) {
// Existing user consenting for the first time, so give them 7 days
expiresAt = new Date(now);
expiresAt.setUTCHours(expiresAt.getUTCHours() + 7 * 24);
Expand Down

0 comments on commit e352be5

Please sign in to comment.