Skip to content

Commit 40427bc

Browse files
authored
fix(sdk): split check for empty string (#125)
1 parent 7a2d645 commit 40427bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sdk/src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export const splitInscriptionId = (inscriptionId: string) => {
293293
throw new OrditSDKError(`Invalid inscriptionId: ${inscriptionId}`)
294294
}
295295
const indexNum = Number(index)
296-
if (Number.isNaN(indexNum) || indexNum < 0 || index !== "") {
296+
if (Number.isNaN(indexNum) || indexNum < 0 || index === "") {
297297
throw new OrditSDKError(`Invalid inscriptionId: ${inscriptionId}`)
298298
}
299299

0 commit comments

Comments
 (0)