aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+stats/video/video-stats.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-20 09:17:23 +0200
committerChocobozzz <me@florianbigard.com>2022-04-20 09:17:23 +0200
commit4f9a20a00a37c51788ab1cf4b343247918090f9b (patch)
tree6b45ee66a03b15dab8cbde416c0a100486b7299d /client/src/app/+stats/video/video-stats.component.ts
parentffcfb32b2f593be46120b9e5fd16d6f8741d8ddc (diff)
downloadPeerTube-4f9a20a00a37c51788ab1cf4b343247918090f9b.tar.gz
PeerTube-4f9a20a00a37c51788ab1cf4b343247918090f9b.tar.zst
PeerTube-4f9a20a00a37c51788ab1cf4b343247918090f9b.zip
Don't date if no there aren't peak viewers
Diffstat (limited to 'client/src/app/+stats/video/video-stats.component.ts')
-rw-r--r--client/src/app/+stats/video/video-stats.component.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+stats/video/video-stats.component.ts b/client/src/app/+stats/video/video-stats.component.ts
index 8200661c3..09ed37799 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 {
154 { 154 {
155 label: $localize`Peak viewers`, 155 label: $localize`Peak viewers`,
156 value: this.numberFormatter.transform(overallStats.viewersPeak), 156 value: this.numberFormatter.transform(overallStats.viewersPeak),
157 moreInfo: $localize`at ${new Date(overallStats.viewersPeakDate).toLocaleString()}` 157 moreInfo: overallStats.viewersPeak !== 0
158 ? $localize`at ${new Date(overallStats.viewersPeakDate).toLocaleString()}`
159 : undefined
158 } 160 }
159 ] 161 ]
160 } 162 }