This commit is contained in:
David Ralph
2020-12-01 12:09:50 +00:00
parent d80e9d09c8
commit 12e7ec8995
11 changed files with 48 additions and 81 deletions

View File

@@ -52,9 +52,7 @@ export default class Greeting extends React.PureComponent {
if (birth.getDate() === now.getDate() && birth.getMonth() === now.getMonth() && birth.getFullYear() !== 1001) message = 'Happy Birthday';
// Set the state to the greeting string
this.setState({
greeting: `${message}${name}`
});
this.setState({ greeting: `${message}${name}` });
}
componentDidMount() {