web/satellite/vuetify-poc: fix limits values formatting on project dashboard

Fixed regular expression which should search and remove insignificant trailing zeros of limit values.

Issue:
https://github.com/storj/storj/issues/6311

Change-Id: I267c779e406a1933d43f09b497470bad9f8ab71c
This commit is contained in:
Vitalii 2023-09-22 15:02:41 +03:00 committed by Storj Robot
parent 52d337496f
commit 5689083393

View File

@ -154,7 +154,7 @@ function formattedValue(value: Size): string {
case Dimensions.Bytes: case Dimensions.Bytes:
return '0'; return '0';
default: default:
return `${value.formattedBytes.replace(/\\.0+$/, '')}${value.label}`; return `${value.formattedBytes.replace(/\.0+$/, '')}${value.label}`;
} }
} }