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

@@ -19,7 +19,10 @@ export default class Radio extends PureComponent {
}
if (this.props.name === 'language') {
localStorage.setItem('tabName', require(`../../../../translations/${value.replace('-', '_')}.json`).tabname);
// old tab name
if (localStorage.getItem('tabName') === window.language.tabname) {
localStorage.setItem('tabName', require(`../../../../translations/${value.replace('-', '_')}.json`).tabname);
}
}
localStorage.setItem(this.props.name, value);