Update component.jsx

Refactor size calculation.
This commit is contained in:
InsertDisc 2024-08-23 12:39:39 -04:00 committed by GitHub
parent 394c410ba9
commit 0090990d46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ export default function Component({ service }) {
}
if (response) {
const totalFilesizeGB = (response.FILESIZE / (1024 ** 3)).toFixed(2);
const totalFilesizeGB = (response.FILESIZE / 1024 ** 3).toFixed(2);
return (
<Container service={service}>