diff --git a/.changeset/angry-penguins-kneel.md b/.changeset/angry-penguins-kneel.md new file mode 100644 index 000000000..ecdd9447d --- /dev/null +++ b/.changeset/angry-penguins-kneel.md @@ -0,0 +1,5 @@ +--- +'@reservoir0x/relay-kit-ui': patch +--- + +Remove route selector from single chain mode diff --git a/packages/ui/src/components/widgets/SwapWidget/index.tsx b/packages/ui/src/components/widgets/SwapWidget/index.tsx index b825e316e..6fe506f09 100644 --- a/packages/ui/src/components/widgets/SwapWidget/index.tsx +++ b/packages/ui/src/components/widgets/SwapWidget/index.tsx @@ -240,7 +240,8 @@ const SwapWidget: FC = ({ const promptSwitchRoute = (isCapacityExceededError || isCouldNotExecuteError) && - supportsExternalLiquidity + supportsExternalLiquidity && + !isSingleChainLocked return ( = ({ tradeType === 'EXACT_INPUT' ? amountInputValue : amountInputValue - ? formatFixedLength(amountInputValue, 8) - : amountInputValue + ? formatFixedLength(amountInputValue, 8) + : amountInputValue } setValue={(e) => { setAmountInputValue(e) @@ -671,8 +672,8 @@ const SwapWidget: FC = ({ tradeType === 'EXPECTED_OUTPUT' ? amountOutputValue : amountOutputValue - ? formatFixedLength(amountOutputValue, 8) - : amountOutputValue + ? formatFixedLength(amountOutputValue, 8) + : amountOutputValue } setValue={(e) => { setAmountOutputValue(e) @@ -836,7 +837,7 @@ const SwapWidget: FC = ({ - {error && !isFetchingPrice ? ( + {error && !isFetchingPrice && !isSingleChainLocked ? (