This commit is contained in:
David Ralph
2021-02-08 17:29:07 +00:00
parent 7785706737
commit 182da7cd5d
9 changed files with 35 additions and 56 deletions

View File

@@ -54,7 +54,9 @@ export default class Greeting extends React.PureComponent {
const data = localStorage.getItem('greetingName');
if (typeof data === 'string') {
if (data.replace(/\s/g, '').length > 0) name = `, ${data.trim()}`;
if (data.replace(/\s/g, '').length > 0) {
name = `, ${data.trim()}`;
}
}
if (custom === 'false') {