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:
parent
52d337496f
commit
5689083393
@ -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}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user