Skip to content

Commit

Permalink
Chore: Fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner committed Nov 20, 2023
1 parent 13e504a commit 6b4cd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ledger-icrc/src/utils/ledger.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const encodeIcrcAccount = ({
const removeLeadingZeros = (text: string): string => text.replace(/^0+/, "");

const subaccountText = removeLeadingZeros(
uint8ArrayToHexString(Uint8Array.from(subaccount)),
uint8ArrayToHexString(Uint8Array.from(subaccount ?? [])),
);

if (subaccountText.length === 0) {
Expand Down

0 comments on commit 6b4cd88

Please sign in to comment.