Skip to content

Commit

Permalink
Merge pull request #709 from gagan-suie/dev
Browse files Browse the repository at this point in the history
Fix: viewDetails.count crash
  • Loading branch information
gagansuie authored Sep 18, 2023
2 parents acdf069 + fbae553 commit 948eea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Browse/Sections/ItemCarousel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
data-tip="{getNumberInThousands(channel.viewDetails?.count || 0)} views">
<span class="btn btn-sm rounded-md font-medium gap-2 btn-neutral text-white border-none">
<IconViews />
{getNumberInThousands(channel.viewDetails.count || 0)}
{getNumberInThousands(channel.viewDetails?.count || 0)}
</span>
</div>
<div class="tooltip" data-tip="{getNumberInThousands(channel.memberCount || 0)} watching">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Channel/Stream/StreamContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
data-tip="{getNumberInThousands(channel.viewDetails?.count || 0)} views">
<span class="btn btn-sm btn-neutral font-medium gap-2 text-white border-none">
<IconViews />
{getNumberInThousands(channel.viewDetails.count || 0)}
{getNumberInThousands(channel.viewDetails?.count || 0)}
</span>
</div>
<div
Expand Down

0 comments on commit 948eea5

Please sign in to comment.