diff --git a/packages/browser-extension/src/OptionsPage.tsx b/packages/browser-extension/src/OptionsPage.tsx
index 913b69ab..6407b3cc 100644
--- a/packages/browser-extension/src/OptionsPage.tsx
+++ b/packages/browser-extension/src/OptionsPage.tsx
@@ -32,7 +32,7 @@ export default function OptionsPage() {
);
}
} else if (whoami) {
- loggedInMessage = {whoami.name};
+ loggedInMessage = {whoami.email};
} else {
loggedInMessage = ;
}
diff --git a/packages/trpc/index.ts b/packages/trpc/index.ts
index 6ca0bbf7..bcfa7211 100644
--- a/packages/trpc/index.ts
+++ b/packages/trpc/index.ts
@@ -5,8 +5,8 @@ import superjson from "superjson";
type User = {
id: string;
- name: string;
- email: string;
+ name?: string | null | undefined;
+ email?: string | null | undefined;
role: "admin" | "user" | null;
};
diff --git a/packages/trpc/routers/users.ts b/packages/trpc/routers/users.ts
index efef61af..1a851b05 100644
--- a/packages/trpc/routers/users.ts
+++ b/packages/trpc/routers/users.ts
@@ -99,8 +99,8 @@ export const usersAppRouter = router({
.output(
z.object({
id: z.string(),
- name: z.string(),
- email: z.string(),
+ name: z.string().nullish(),
+ email: z.string().nullish(),
}),
)
.query(async ({ ctx }) => {