Skip to content

Commit f1b0776

Browse files
Merge pull request #63 from oneworldcoders/fix-negative-ranges
Fix spinner for ranges that span 0
2 parents 2c8c8de + ae1cad9 commit f1b0776

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const isEmpty = (x) => {
99
return x === "";
1010
}
1111

12+
if (x===0) return false;
1213
if (!x) return true;
1314
if (x === {}) return true;
1415
if (x === []) return true;

0 commit comments

Comments
 (0)