diff --git a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/ShowTokenActions/TopTokenActions.tsx b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/ShowTokenActions/TopTokenActions.tsx index 69207b17f3..56eed94449 100644 --- a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/ShowTokenActions/TopTokenActions.tsx +++ b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/ShowTokenActions/TopTokenActions.tsx @@ -13,7 +13,7 @@ import {useSwapTouched} from '../../../../common/SwapFormProvider' export const TopTokenActions = () => { const strings = useStrings() const orderTypeLabels = [strings.marketButton, strings.limitButton] - const {createOrder, orderTypeChanged} = useSwap() + const {createOrder, limitPriceChanged, orderTypeChanged} = useSwap() const {isBuyTouched, isSellTouched} = useSwapTouched() const isDisabled = !isBuyTouched || !isSellTouched || createOrder.selectedPool === undefined const orderTypeIndex = createOrder.type === 'market' ? 0 : 1 @@ -32,6 +32,11 @@ export const TopTokenActions = () => { } } + const refresh = () => { + refetch() + limitPriceChanged(createOrder.marketPrice) + } + return ( { selected={orderTypeIndex} /> - refetch()} disabled={isDisabled}> +