Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't date if no there aren't peak viewers

Chocobozzz4f9a20a00a37
diff --git a/client/src/app/+stats/video/video-stats.component.ts b/client/src/app/+stats/video/video-stats.component.ts
index 8200661c31..09ed377999 100644
--- a/client/src/app/+stats/video/video-stats.component.ts
+++ b/client/src/app/+stats/video/video-stats.component.ts
@@ -154,7 +154,9 @@ export class VideoStatsComponent implements OnInit {
{
label: $localize`Peak viewers`,
value: this.numberFormatter.transform(overallStats.viewersPeak),
- moreInfo: $localize`at ${new Date(overallStats.viewersPeakDate).toLocaleString()}`
+ moreInfo: overallStats.viewersPeak !== 0
+ ? $localize`at ${new Date(overallStats.viewersPeakDate).toLocaleString()}`
+ : undefined
}
]
}