Revert account storage UI change for handoff to owning chat
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-09-29 12:02:14 +02:00
1 parent f446deb938
commit a9f4b69ba7
4 files changed
+4 -11

No files matched your search

+1 -5
View File
@@ -62,11 +62,7 @@
const used = formatAmount(storage?.used);
const total = formatAmount(storage?.total);
if (!used || !total || storage.total.value <= 0) return null;
const amountInBytes = amount => amount.value * (amount.unit.includes('I') ? 1024 : 1000) ** 'BKMGTPE'.indexOf(amount.unit[0]);
const percent = amountInBytes(storage.used) / amountInBytes(storage.total) * 100;
if (!Number.isFinite(percent)) return null;
const percentage = new Intl.NumberFormat(locale, { maximumFractionDigits: 1 }).format(percent);
return `${used} ${String(locale).startsWith('de') ? 'von' : 'of'} ${total} (${percentage}%)`;
return `${used} ${String(locale).startsWith('de') ? 'von' : 'of'} ${total}`;
}
const accountStatus = {