Skip to content

Commit

Permalink
fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Nov 13, 2024
1 parent bcf2960 commit 5eb44a6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/stateful/actions/core/actions/BurnNft/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,14 @@ export class BurnNftAction extends ActionBase<BurnNftData> {

// All messages must be burns for this to match. Otherwise, we may match
// a cross-chain execute and accidentally conceal other messages.
const allAreBurns = burns.every((b) => !!b)

return allAreBurns
return burns.every(Boolean)
? {
isWrapped,
burns,
burns: burns as {
chainId: string
collection: any
tokenId: any
}[],
}
: null
}
Expand Down

0 comments on commit 5eb44a6

Please sign in to comment.