From f1e4377443be493a7072aca33a62b51e381f6841 Mon Sep 17 00:00:00 2001 From: KROSY <45696255+krosy1337@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:12:17 +0300 Subject: [PATCH] fix: add storage value to tb formatter (#547) --- src/utils/dataFormatters/dataFormatters.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/dataFormatters/dataFormatters.ts b/src/utils/dataFormatters/dataFormatters.ts index 704d97e63..3788f7297 100644 --- a/src/utils/dataFormatters/dataFormatters.ts +++ b/src/utils/dataFormatters/dataFormatters.ts @@ -86,6 +86,10 @@ export const formatStorageValuesToGb = (value?: number, total?: number) => { return formatStorageValues(value, total, 'gb'); }; +export const formatStorageValuesToTb = (value?: number, total?: number) => { + return formatStorageValues(value, total, 'tb'); +}; + export const formatNumber = (number?: unknown) => { if (!isNumeric(number)) { return '';