Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/angry-penguins-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reservoir0x/relay-kit-ui': patch
---

Remove route selector from single chain mode
13 changes: 7 additions & 6 deletions packages/ui/src/components/widgets/SwapWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ const SwapWidget: FC<SwapWidgetProps> = ({

const promptSwitchRoute =
(isCapacityExceededError || isCouldNotExecuteError) &&
supportsExternalLiquidity
supportsExternalLiquidity &&
!isSingleChainLocked

return (
<WidgetContainer
Expand Down Expand Up @@ -351,8 +352,8 @@ const SwapWidget: FC<SwapWidgetProps> = ({
tradeType === 'EXACT_INPUT'
? amountInputValue
: amountInputValue
? formatFixedLength(amountInputValue, 8)
: amountInputValue
? formatFixedLength(amountInputValue, 8)
: amountInputValue
}
setValue={(e) => {
setAmountInputValue(e)
Expand Down Expand Up @@ -671,8 +672,8 @@ const SwapWidget: FC<SwapWidgetProps> = ({
tradeType === 'EXPECTED_OUTPUT'
? amountOutputValue
: amountOutputValue
? formatFixedLength(amountOutputValue, 8)
: amountOutputValue
? formatFixedLength(amountOutputValue, 8)
: amountOutputValue
}
setValue={(e) => {
setAmountOutputValue(e)
Expand Down Expand Up @@ -836,7 +837,7 @@ const SwapWidget: FC<SwapWidgetProps> = ({
</Flex>
</Flex>
</TokenSelectorContainer>
{error && !isFetchingPrice ? (
{error && !isFetchingPrice && !isSingleChainLocked ? (
<Box
css={{
borderRadius: 'widget-card-border-radius',
Expand Down