Skip to content

Commit

Permalink
#1745 fix error message when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
turk-t committed Jun 13, 2024
1 parent 409dee6 commit c0fd908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/website/src/user/account-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<landing-navbar />
<section class="pt-16 mb-16 bg-white dark:bg-pitch">
<div
v-if="!profileData && !isLoadingProfileData"
v-if="isErrorProfileData"
class="flex rounded-lg bg-moss py-3 px-4 mx-auto max-w-screen-md dark:bg-moss items-center justify-center h-screen text-center"
>
<span>
Expand Down Expand Up @@ -303,7 +303,7 @@ const store = useStore()
const router = useRouter()
const apiClientBio = inject(apiClientKey) as AxiosInstance
const { isLoading: isLoadingProfileData, data: profileData } = useGetProfileData(apiClientBio)
const { isLoading: isLoadingProfileData, data: profileData, isError: isErrorProfileData } = useGetProfileData(apiClientBio)
const { isPending: isUpdatingProfilePhoto, mutate: mutatePatchProfilePhoto } = usePatchProfileImage(apiClientBio)
const { isPending: isUpdatingUserProfile, mutate: mutatePatchUserProfile } = usePatchUserProfile(apiClientBio)
const { data: organizationsList } = useGetOrganizationsList(apiClientBio)
Expand Down

0 comments on commit c0fd908

Please sign in to comment.