From 5674fe06d8c33cbbaa0e4a62533375e32104a33c Mon Sep 17 00:00:00 2001 From: Ted Palmer Date: Tue, 12 Nov 2024 13:54:52 -0500 Subject: [PATCH 1/2] Patch fix backend error message --- packages/ui/src/components/widgets/WidgetErrorWell.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/widgets/WidgetErrorWell.tsx b/packages/ui/src/components/widgets/WidgetErrorWell.tsx index 6546ed18..c948c82b 100644 --- a/packages/ui/src/components/widgets/WidgetErrorWell.tsx +++ b/packages/ui/src/components/widgets/WidgetErrorWell.tsx @@ -38,7 +38,9 @@ export const WidgetErrorWell: FC = ({ const isSmallDevice = useMediaQuery('(max-width: 600px)') const fetchQuoteErrorMessage = error ? error?.response?.data?.message - ? (error?.response?.data.message as string) + ? error?.response?.data.message === 'processing response error' + ? 'Amount is higher than the available liquidity.' + : (error?.response?.data.message as string) : 'Unknown Error' : null const isHighPriceImpact = Number(quote?.details?.totalImpact?.percent) < -3.5 From 04ba9cf641e80191f80ba5b09e721fdd665293b8 Mon Sep 17 00:00:00 2001 From: Ted Palmer Date: Tue, 12 Nov 2024 13:55:24 -0500 Subject: [PATCH 2/2] feat: changeset --- .changeset/clean-snakes-speak.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/clean-snakes-speak.md diff --git a/.changeset/clean-snakes-speak.md b/.changeset/clean-snakes-speak.md new file mode 100644 index 00000000..503e5cf4 --- /dev/null +++ b/.changeset/clean-snakes-speak.md @@ -0,0 +1,5 @@ +--- +'@reservoir0x/relay-kit-ui': patch +--- + +Fix zero quote api error message