From a42d85bebfa2c60d6ed9ce6f52c4c61ac29dc077 Mon Sep 17 00:00:00 2001 From: alpha Date: Fri, 27 Nov 2026 12:42:55 -0600 Subject: [PATCH] fix(home): wait for account before greeting by name The email arrives before the account config, so the greeting showed the email's local part and then swapped it for the name. Hold the name until interviewConfigLoaded, which lands in the same write as fullName. Co-Authored-By: Claude Opus 5.5 --- src/renderer/pages/home/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/pages/home/index.tsx b/src/renderer/pages/home/index.tsx index 3ea06124..e7e8143f 100644 --- a/src/renderer/pages/home/index.tsx +++ b/src/renderer/pages/home/index.tsx @@ -201,8 +201,12 @@ export default function HomePage() { // second one - both need to settle before "no data" is trustworthy. const accountReady = !configLoading && config !== undefined && appState !== null; const subscribed = isSubscriptionActive(subscription, now); - const firstName = - appState?.interviewConfig?.fullName?.trim().split(' ')[0] || email?.split('@')[0]; + // Held until the account has been read. The email is known well before the name, so falling + // back to it straight away greeted every user by their address for a moment and then swapped + // it for their name. Until then the greeting carries no name at all. + const firstName = appState?.interviewConfigLoaded + ? appState.interviewConfig?.fullName?.trim().split(' ')[0] || email?.split('@')[0] + : undefined; const planText = accountReady ? (planSummary ?? t.home.planUnavailable) : t.common.loading; const handleStartLive = () => {