diff --git a/.changeset/plain-camels-watch.md b/.changeset/plain-camels-watch.md new file mode 100644 index 000000000..c965cc2f1 --- /dev/null +++ b/.changeset/plain-camels-watch.md @@ -0,0 +1,5 @@ +--- +'@relayprotocol/relay-kit-ui': patch +--- + +Fix no routes error handling diff --git a/packages/ui/src/components/widgets/WidgetErrorWell.tsx b/packages/ui/src/components/widgets/WidgetErrorWell.tsx index dc004b3d7..ce61bdcf5 100644 --- a/packages/ui/src/components/widgets/WidgetErrorWell.tsx +++ b/packages/ui/src/components/widgets/WidgetErrorWell.tsx @@ -10,6 +10,7 @@ import { useMediaQuery } from 'usehooks-ts' import type { Styles } from '@relayprotocol/relay-design-system/css' import type { QuoteResponse } from '@relayprotocol/relay-kit-hooks' import type { LinkedWallet } from '../../types/index.js' +import { faRoute } from '@fortawesome/free-solid-svg-icons' type Props = { error: any @@ -67,7 +68,32 @@ export const WidgetErrorWell: FC = ({ error?.response?.data?.errorCode === 'UNSUPPORTED_ROUTE' if (isInsufficientLiquidityError || isNoAvailableRoutesError) { - return null + return ( + + Route + + + No available routes + + + + + + + ) } /*