Shared: Fixed display of quota for archive room.

This commit is contained in:
Tatiana Lopaeva 2024-07-10 14:59:13 +03:00
parent bb1092a5ec
commit 2abdc4f4d7

View File

@ -663,11 +663,14 @@ export const getSpaceQuotaAsText = (
isDefaultQuotaSet: boolean,
) => {
const usedValue = getConvertedQuota(t, usedSpace);
if (!isDefaultQuotaSet) return usedValue;
if (!quotaLimit) return usedValue;
const quotaValue = getConvertedQuota(t, quotaLimit);
if (isDefaultQuotaSet) return `${usedValue} / ${quotaValue}`;
return usedValue;
return `${usedValue} / ${quotaValue}`;
};
export const conversionToBytes = (size: number, power: number) => {