Skip to content

Commit

Permalink
Merge pull request #63 from oneworldcoders/fix-negative-ranges
Browse files Browse the repository at this point in the history
Fix spinner for ranges that span 0
  • Loading branch information
marcocesarato authored Oct 29, 2021
2 parents 2c8c8de + ae1cad9 commit f1b0776
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const isEmpty = (x) => {
return x === "";
}

if (x===0) return false;
if (!x) return true;
if (x === {}) return true;
if (x === []) return true;
Expand Down

0 comments on commit f1b0776

Please sign in to comment.