From c57989d14fee55d40c426f9ca53dfd48f9d202a2 Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Sun, 29 Aug 2021 10:45:02 +0530 Subject: [PATCH] convert storage quota to human readable --- src/components/Sidebar.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 93d0d72c0..32705ff9d 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -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) ) ) : (