Don't show cake day indicator on the same year / day of user registration, instead show it the following years (#936)

pull/938/head
Filip Duricic 2020-07-11 03:38:01 +02:00 committed by GitHub
parent 8d24659892
commit 9c7c7b06df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

3
ui/src/utils.ts vendored
View File

@ -496,7 +496,8 @@ export function isCakeDay(published: string): boolean {
return ( return (
userCreationDate.date() === currentDate.date() && userCreationDate.date() === currentDate.date() &&
userCreationDate.month() === currentDate.month() userCreationDate.month() === currentDate.month() &&
userCreationDate.year() !== currentDate.year()
); );
} }