diff --git a/src/utils/OrderUtils.ts b/src/utils/OrderUtils.ts index 33b5eb5b8..fe6b8284f 100644 --- a/src/utils/OrderUtils.ts +++ b/src/utils/OrderUtils.ts @@ -189,7 +189,7 @@ export async function orderAsset( ) const txApprove = typeof tx !== 'number' ? await tx.wait() : tx if (!txApprove) { - throw new Error(`Failed to appove ${exchange.baseToken} !`) + throw new Error(`Failed to approve ${exchange.baseToken} !`) } const freTx = await fre.buyDatatokens( exchange.exchangeId, @@ -221,11 +221,11 @@ export async function orderAsset( false ) if (!tx) { - return + throw new Error(`Failed to approve ${exchange.baseToken} !`) } const txApprove = typeof tx !== 'number' ? await tx.wait() : tx if (!txApprove) { - return + throw new Error(`Failed to confirm/mine approval transaction!`) } const txBuy = await datatoken.buyFromFreAndOrder( asset.datatokens[datatokenIndex].address,