Skip to content

Commit 7c760be

Browse files
fix: handling the case of undefined updated_at on message
1 parent 32f3940 commit 7c760be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const useCreatePaginatedMessageListContext = <
2323
({ deleted_at, latest_reactions, reply_count, status, updated_at }) =>
2424
`${deleted_at}${
2525
latest_reactions ? latest_reactions.map(({ type }) => type).join() : ''
26-
}${reply_count}${status}${updated_at.toISOString()}`,
26+
}${reply_count}${status}${updated_at?.toISOString?.() || updated_at}`,
2727
)
2828
.join();
2929

0 commit comments

Comments
 (0)