Skip to content

Commit

Permalink
fix: add storage value to tb formatter (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
krosy1337 authored Oct 11, 2023
1 parent f55ad2f commit f1e4377
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/dataFormatters/dataFormatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
Expand Down

0 comments on commit f1e4377

Please sign in to comment.