Skip to content

Commit

Permalink
fix(sdk): split check for empty string (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevzzsk authored Aug 5, 2024
1 parent 7a2d645 commit 40427bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export const splitInscriptionId = (inscriptionId: string) => {
throw new OrditSDKError(`Invalid inscriptionId: ${inscriptionId}`)
}
const indexNum = Number(index)
if (Number.isNaN(indexNum) || indexNum < 0 || index !== "") {
if (Number.isNaN(indexNum) || indexNum < 0 || index === "") {
throw new OrditSDKError(`Invalid inscriptionId: ${inscriptionId}`)
}

Expand Down

0 comments on commit 40427bc

Please sign in to comment.