From e27ee230574b2a9903d0eac1266e8cf731cae49f Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:50:14 -0800 Subject: [PATCH] Fix Profile page crash (#10439) --- packages/common/src/store/pages/profile/reducer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/common/src/store/pages/profile/reducer.ts b/packages/common/src/store/pages/profile/reducer.ts index 411068165bc..2289ec4573e 100644 --- a/packages/common/src/store/pages/profile/reducer.ts +++ b/packages/common/src/store/pages/profile/reducer.ts @@ -346,8 +346,9 @@ const reducer = ( const { currentUser, entries } = state const profileHandle = - 'handle' in action ? action.handle?.toLowerCase() : currentUser - + 'handle' in action + ? action.handle?.toLowerCase() ?? currentUser + : currentUser if (!profileHandle) return state let newEntry = entries[profileHandle] ?? initialProfileState