From bcfd125b72adc281cdb1094d66165f65f85320a3 Mon Sep 17 00:00:00 2001 From: Ana Loznianu Date: Tue, 5 Dec 2023 15:38:05 +0200 Subject: [PATCH 1/2] 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 53384ad0..da31a496 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 From c7b45ee10a5ce98d26ffb3528c8feee5f9da38ad Mon Sep 17 00:00:00 2001 From: Ana Loznianu Date: Tue, 5 Dec 2023 16:02:29 +0200 Subject: [PATCH 2/2] Fix linter --- src/utils/OrderUtils.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/OrderUtils.ts b/src/utils/OrderUtils.ts index da31a496..99e018c6 100644 --- a/src/utils/OrderUtils.ts +++ b/src/utils/OrderUtils.ts @@ -197,7 +197,6 @@ export async function orderAsset( price, false ) - if (!tx) { return }