Skip to content

Commit

Permalink
fix: every is a bitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebulis committed Mar 5, 2021
1 parent ab3b082 commit f06e99b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ const verifyV2 = async (
reason: status.reason,
};
});
const issuedOnAll = issuance.every((i) => i.issued);
// length might be checked above, but just in case, let's make sure there is at least one element (every returns true for empty array)
const issuedOnAll = issuance.length > 0 && issuance.every((i) => i.issued);

return {
name,
Expand Down

0 comments on commit f06e99b

Please sign in to comment.