Skip to content

Commit

Permalink
fix: make sure banner shows up tomorrow
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg committed Dec 5, 2023
1 parent d4b8354 commit 8111f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/campaigns/Banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Banner({}) {
const month = new Date().getUTCMonth();
const year = new Date().getUTCFullYear();
// month=11 is December. Show only between 6-30 November.
if (year > 2023 && month > 11 && day < 6) {
if (year > 2023 || month > 11 || day < 6) {
return null;
}

Expand Down

0 comments on commit 8111f6f

Please sign in to comment.