diff --git a/web/src/routes/Storage.jsx b/web/src/routes/Storage.jsx index e2498fbcc..06976ca76 100644 --- a/web/src/routes/Storage.jsx +++ b/web/src/routes/Storage.jsx @@ -23,6 +23,7 @@ export default function Storage() { } const getUnitSize = (MB) => { + if (isNaN(MB) || MB < 0) return 'Invalid number'; if (MB < 1024) return `${MB} MB`; return `${(MB / 1024).toFixed(2)} GB`;