From 9c7c7b06df0b513aaa36711539fa73d50ec0d09d Mon Sep 17 00:00:00 2001 From: Filip Duricic Date: Sat, 11 Jul 2020 03:38:01 +0200 Subject: [PATCH] Don't show cake day indicator on the same year / day of user registration, instead show it the following years (#936) --- ui/src/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 6276519ba..2bede7770 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -496,7 +496,8 @@ export function isCakeDay(published: string): boolean { return ( userCreationDate.date() === currentDate.date() && - userCreationDate.month() === currentDate.month() + userCreationDate.month() === currentDate.month() && + userCreationDate.year() !== currentDate.year() ); }