1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

Ensure display values for metrics are capped at 100% in the day pass modal

This commit is contained in:
Dean 2022-09-26 09:52:20 +01:00
parent c0bdcbe7a3
commit 30622a53bf

View file

@ -12,7 +12,10 @@
$: daysRemaining = $licensing.quotaResetDaysRemaining
$: quotaResetDate = $licensing.quotaResetDate
$: dayPassesUsed = $licensing.usageMetrics?.dayPasses
$: dayPassesUsed =
$licensing.usageMetrics?.dayPasses > 100
? 100
: $licensing.usageMetrics?.dayPasses
$: dayPassesTitle =
dayPassesUsed >= 100
? "You have run out of Day Passes"