diff --git a/widget/embedded/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts b/widget/embedded/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts index d1e2bf343..2bf3f243f 100644 --- a/widget/embedded/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts +++ b/widget/embedded/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts @@ -180,6 +180,17 @@ export function handleQuoteErrors(error: any): ConfirmSwapFetchResult { }; } + if (error?.code === 'ERR_BAD_REQUEST') { + return { + swap: null, + error: { + type: QuoteErrorType.NO_RESULT, + diagnosisMessage: error.response.data.error, + }, + warnings: null, + }; + } + return { swap: null, error: {