aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/CurrentIdentity.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/CurrentIdentity.tsx')
-rw-r--r--webui/src/CurrentIdentity.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webui/src/CurrentIdentity.tsx b/webui/src/CurrentIdentity.tsx
index 5b8fcbb9..256f44c4 100644
--- a/webui/src/CurrentIdentity.tsx
+++ b/webui/src/CurrentIdentity.tsx
@@ -14,9 +14,9 @@ const CurrentIdentity = () => {
const classes = useStyles();
const { loading, error, data } = useCurrentIdentityQuery();
- if (error || loading || !data?.defaultRepository?.userIdentity) return null;
+ if (error || loading || !data?.repository?.userIdentity) return null;
- const user = data.defaultRepository.userIdentity;
+ const user = data.repository.userIdentity;
return (
<>
<Avatar src={user.avatarUrl ? user.avatarUrl : undefined}>