From de417f5fd1d9da2143e677458f9e969927667ac5 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Fri, 16 Apr 2021 22:37:12 +0100 Subject: [PATCH] fix: birthday age --- src/components/widgets/greeting/Greeting.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/greeting/Greeting.jsx b/src/components/widgets/greeting/Greeting.jsx index 1e93e029..13b91b67 100644 --- a/src/components/widgets/greeting/Greeting.jsx +++ b/src/components/widgets/greeting/Greeting.jsx @@ -84,7 +84,7 @@ export default class Greeting extends React.PureComponent { // Birthday const birth = new Date(localStorage.getItem('birthday')); if (localStorage.getItem('birthdayenabled') === 'true' && birth.getDate() === now.getDate() && birth.getMonth() === now.getMonth()) { - if (localStorage.getItem('birthdayage')) { + if (localStorage.getItem('birthdayage') === 'true') { const text = this.language.birthday.split(' '); message = `${text[0]} ${dtf.nth(this.calculateAge(birth))} ${text[1]}`; } else {