diff --git a/packages/hoppscotch-app/locales/en.json b/packages/hoppscotch-app/locales/en.json index b3f81204a..b07f4eb36 100644 --- a/packages/hoppscotch-app/locales/en.json +++ b/packages/hoppscotch-app/locales/en.json @@ -335,7 +335,8 @@ "roles_description": "Roles are used to control access to the shared collections.", "updated": "Profile updated", "viewer": "Viewer", - "viewer_description": "Viewers can only view and use requests." + "viewer_description": "Viewers can only view and use requests.", + "default_hopp_displayname": "Hoppscotch User" }, "remove": { "star": "Remove star" diff --git a/packages/hoppscotch-app/src/components/app/Header.vue b/packages/hoppscotch-app/src/components/app/Header.vue index 44fe14aba..b734f5138 100644 --- a/packages/hoppscotch-app/src/components/app/Header.vue +++ b/packages/hoppscotch-app/src/components/app/Header.vue @@ -71,8 +71,14 @@ theme: 'tooltip', }" :url="currentUser.photoURL" - :alt="currentUser.displayName" - :title="currentUser.displayName" + :alt=" + currentUser.displayName || + t('profile.default_hopp_displayname') + " + :title=" + currentUser.displayName || + t('profile.default_hopp_displayname') + " indicator :indicator-styles=" network.isOnline ? 'bg-green-500' : 'bg-red-500' @@ -81,7 +87,10 @@ - {{ initial.charAt(0).toUpperCase() }} + + +