let christmas theme run until jan 5th

This commit is contained in:
Tom (plebeius.eth)
2024-12-24 17:44:43 +01:00
parent 8accaac343
commit f533faf9f6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ const useTheme = (): [string, (theme: string) => void] => {
const today = new Date();
const month = today.getMonth();
const day = today.getDate();
const isChristmas = month === 11 && (day === 24 || day === 25);
const isChristmas = (month === 11 && day >= 24) || (month === 0 && day <= 5);
const subplebbitAddress = params?.subplebbitAddress || pendingPostSubplebbitAddress;
if (isChristmas && isEnabled === null && subplebbitAddress && !isInAllView && !isInSubscriptionsView) {