fix: tab name language, favourite marketplace backgrounds, birthday greeting message etc

This commit is contained in:
David Ralph
2021-08-22 15:00:05 +01:00
parent 490f42a9ad
commit 096df4f073
3 changed files with 25 additions and 12 deletions

View File

@@ -82,12 +82,14 @@ export default class Greeting extends PureComponent {
}
}
if (custom === 'false') {
const birthday = localStorage.getItem('birthdayenabled');
if (custom === 'false' && birthday !== 'true') {
name = name.replace(',', '');
}
// Birthday
if (localStorage.getItem('birthdayenabled') === 'true') {
if (birthday === 'true') {
const birth = new Date(localStorage.getItem('birthday'));
if (birth.getDate() === now.getDate() && birth.getMonth() === now.getMonth()) {