Skip to content

Commit

Permalink
ulid#102 update
Browse files Browse the repository at this point in the history
  • Loading branch information
aAYUSHkujur committed May 21, 2023
1 parent a583120 commit c816c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ export function encodeTime(now, len) {
if (now < 0) {
throw createError("time must be positive");
}
if (Number.isInteger(now) === false) {
if (Number.isInteger(Number(now)) === false) {
throw createError("time must be an integer");
}
let mod;

0 comments on commit c816c9d

Please sign in to comment.