Improved handling of unexpected events

This commit is contained in:
Alicia Sykes
2021-09-12 16:33:29 +01:00
parent affff262d3
commit e9aa2bb7fc
5 changed files with 16 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ export default {
makeText() {
if (this.userType === userStateEnum.loggedIn) {
const username = localStorage[localStorageKeys.USERNAME];
return this.$t('settings.sign-in-welcome', { username });
return username ? this.$t('settings.sign-in-welcome', { username }) : '';
}
if (this.userType === userStateEnum.guestAccess) {
return this.$t('settings.sign-in-tooltip');