- {label}{failure ? (
-
-
-
- {t("quota.refreshErrorLabel")}
- {quotaFailureMessage(t, failure)}
- {lastSuccess ? {t("quota.lastUpdated", { time: formatDateTimeWithRelative(lastSuccess / 1000, formatLocale) })} : null}
-
-
+ {label}{failureId && (failure || status === "stale") ? (
+
) : null}
{value === undefined || !known ? "—" : status === "stale"
? t("quota.previousValue", { value: formatPercent(value, formatLocale) })
@@ -735,15 +789,13 @@ function QuotaMeter({
style={{ width: String(value ?? 0) + "%" }}
/>
-
- {!known
+ {status !== "stale" || value === undefined ?
+ {!known || value === undefined
? t("quota.notAvailable")
- : status === "stale"
- ? t("quota.lastResultStale")
- : window?.resets_at
+ : window?.resets_at
?
: t("quota.resetTimeUnavailable")}
-
+ : null}
);
}
@@ -851,7 +903,6 @@ function AccountCard({