Skip to content

Commit

Permalink
fix(userinfo): add key check for userinfo build_image
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Aug 13, 2024
1 parent d28aa95 commit 8c37019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/KeycloakAuth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function customLogout() {
<template>
<div class="keycloakLoginButton">
<div v-if="loggedIn">
<h3>Welcome {{ user.providerInfo.preferred_username || "Friend" }}!</h3>
<h3>Welcome {{ user.providerInfo?.preferred_username || "Friend" }}!</h3>
<Button @click="customLogout()" severity="warning" outlined
>Logout</Button
>
Expand Down
2 changes: 1 addition & 1 deletion components/login/AvatarButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const toggle = (event) => {
<div v-if="loggedIn" class="authAvatarSection">
<div class="usernameMenuBar">
<p>
{{ user.providerInfo.preferred_username || "Swell Person" }}
{{ user.providerInfo?.preferred_username || "Swell Person" }}
</p>
</div>
<Button
Expand Down

0 comments on commit 8c37019

Please sign in to comment.