Skip to content

Commit

Permalink
Fix non existing transaction error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana Loznianu committed Dec 5, 2023
1 parent 9918d5f commit bcfd125
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/OrderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ export async function orderAsset(
price,
false
)


if (!tx) {
return
}
const txApprove = typeof tx !== 'number' ? await tx.wait() : tx
if (!txApprove) {
return
Expand Down

0 comments on commit bcfd125

Please sign in to comment.