fix conditional error

This commit is contained in:
Alex Holliday committed 2024-11-25 10:33:52 +08:00
1 parent fec43778fa
commit 21546ef65c
1 file changed
+1 -1
@@ -54,7 +54,7 @@ const formatBytes = (bytes) => {
* decimalToPercentage(null) // Returns 0
*/
const decimalToPercentage = (value) => {
if (value === null || undefined) return 0;
if (value === null || value === undefined) return 0;
return value * 100;
};