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