Skip to content

Commit

Permalink
Fix Profile page crash (#10439)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Nov 14, 2024
1 parent 0531a5c commit e27ee23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/common/src/store/pages/profile/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e27ee23

Please sign in to comment.