Shared: Fixed display of quota for archive room.
This commit is contained in:
parent
bb1092a5ec
commit
2abdc4f4d7
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user