Don't date if no there aren't peak viewers
This commit is contained in:
parent
ffcfb32b2f
commit
4f9a20a00a
|
@ -154,7 +154,9 @@ export class VideoStatsComponent implements OnInit {
|
||||||
{
|
{
|
||||||
label: $localize`Peak viewers`,
|
label: $localize`Peak viewers`,
|
||||||
value: this.numberFormatter.transform(overallStats.viewersPeak),
|
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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue