fix conditional error
This commit is contained in:
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;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user