From bcfd125b72adc281cdb1094d66165f65f85320a3 Mon Sep 17 00:00:00 2001 From: Ana Loznianu Date: Tue, 5 Dec 2023 15:38:05 +0200 Subject: [PATCH] Fix non existing transaction error --- src/utils/OrderUtils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/OrderUtils.ts b/src/utils/OrderUtils.ts index 53384ad0c..da31a4960 100644 --- a/src/utils/OrderUtils.ts +++ b/src/utils/OrderUtils.ts @@ -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