Skip to content

Commit

Permalink
fix(messages): unreadMessageCount should fall back to 0 when null
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland committed Feb 6, 2025
1 parent ee4ebc0 commit 949a69c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function execute(
total: $paginatedMessageThreads->total(),
items: MessageThreadData::fromCollection($paginatedMessageThreads->getCollection())
),
unreadMessageCount: $user->UnreadMessageCount,
unreadMessageCount: $user->UnreadMessageCount ?? 0,
);

return ['props' => $props, 'redirectToPage' => null];
Expand Down

0 comments on commit 949a69c

Please sign in to comment.