Skip to content

Commit

Permalink
Fix client error
Browse files Browse the repository at this point in the history
  • Loading branch information
nzws committed Jun 17, 2024
1 parent 1a322c3 commit 2592f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/organisms/live/video/live-player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const LivePlayer: FC<Props> = ({
}

const comment = comments[0];
if (!commentAddedRef.current?.has(comment.id)) {
if (comment && !commentAddedRef.current?.has(comment.id)) {
commentAddedRef.current.add(comment.id);
const dom = gravity.add(comment.content, false);

Expand Down

0 comments on commit 2592f94

Please sign in to comment.