Skip to content

Commit

Permalink
fix: swap some issue fix (#6327)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezailWang authored Dec 11, 2024
1 parent 1414e8a commit 752fcb8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ const SwapInputActions = ({
height="$5"
key={`swap-percentage-input-stage-${stage}`}
size="small"
onPress={() => onSelectStage?.(stage)}
onPress={() => {
onSelectStage?.(stage);
}}
bg="$bgSubdued"
px="$1.5"
py="$0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ const SwapInputContainer = ({
};

const onFromInputBlur = () => {
setPercentageInputStageShow(false);
// delay to avoid blur when select percentage stage
setTimeout(() => {
setPercentageInputStageShow(false);
}, 200);
};

const showPercentageInput = useMemo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ const SwapQuoteResult = ({
}
/>
) : null}
{quoteResult?.toAmount && !quoteResult?.unSupportSlippage ? (
{quoteResult?.toAmount &&
!quoteResult?.unSupportSlippage &&
!quoteResult.isWrapped ? (
<SwapSlippageTriggerContainer
isLoading={swapQuoteLoading}
onPress={onSlippageHandleClick}
Expand Down

0 comments on commit 752fcb8

Please sign in to comment.