Skip to content

Commit

Permalink
fix: used filter(Boolean)
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Aug 6, 2023
1 parent d0045a1 commit 42585bb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions composables/transaction/mintToken/transactionMintRmrk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,7 @@ export async function execMintRmrk({

const arg = isSingle
? args
: [
args
.filter((arg) => arg)
.map((arg) => asSystemRemark(api, arg as string)),
]
: [args.filter(Boolean).map((arg) => asSystemRemark(api, arg as string))]

executeTransaction({
cb,
Expand Down

0 comments on commit 42585bb

Please sign in to comment.