convert storage quota to human readable

This commit is contained in:
Abhinav-grd 2021-08-29 10:45:02 +05:30
parent edd7a78a23
commit c57989d14f

View file

@ -8,7 +8,6 @@ import { getEndpoint } from 'utils/common/apiUtil';
import { Button } from 'react-bootstrap';
import {
isSubscriptionActive,
convertBytesToGBs,
getUserSubscription,
isOnFreePlan,
isSubscriptionCancelled,
@ -186,7 +185,7 @@ export default function Sidebar(props: Props) {
{usage ? (
constants.USAGE_INFO(
usage,
Number(convertBytesToGBs(subscription?.storage))
convertToHumanReadable(subscription?.storage)
)
) : (
<div style={{ textAlign: 'center' }}>