Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: change principal id to email (#9376)

ecmadao14505313efe8
diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vue
index 1f28fc3d71..9bd4c91e4b 100644
--- a/frontend/src/views/ProfileDashboard.vue
+++ b/frontend/src/views/ProfileDashboard.vue
@@ -281,7 +281,7 @@ interface LocalState {
}
const props = defineProps<{
- principalId?: string;
+ principalEmail?: string;
}>();
const { t } = useI18n();
@@ -334,8 +334,8 @@ const showRegenerateRecoveryCodes = computed(() => {
});
const user = computed(() => {
- if (props.principalId) {
- return userStore.getUserById(String(props.principalId)) ?? unknownUser();
+ if (props.principalEmail) {
+ return userStore.getUserByEmail(props.principalEmail) ?? unknownUser();
}
return currentUserV1.value;
});