mirror of
https://github.com/mue/mue.git
synced 2026-07-16 05:23:49 +02:00
finish birthday feature
This commit is contained in:
@@ -49,7 +49,7 @@ export default class Greeting extends React.PureComponent {
|
||||
|
||||
// Birthday
|
||||
const birth = new Date(localStorage.getItem('birthday'));
|
||||
if (birth.getDate() === now.getDate() && birth.getMonth() === now.getMonth() && birth.getFullYear() !== 1001) message = 'Happy Birthday';
|
||||
if (localStorage.getItem('birthdayenabled') === 'true' && birth.getDate() === now.getDate() && birth.getMonth() === now.getMonth()) message = 'Happy Birthday';
|
||||
|
||||
// Set the state to the greeting string
|
||||
this.setState({ greeting: `${message}${name}` });
|
||||
|
||||
Reference in New Issue
Block a user