From 0e87c38548ad28422d6d417160c635557f0da8ad Mon Sep 17 00:00:00 2001 From: Jack Short Date: Wed, 8 Nov 2023 12:28:23 -0500 Subject: [PATCH] chore: disabling exact output for fot tokens (#7550) * chore: disabling exact output for fot tokens * fixing currency symbol --- src/pages/Swap/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/Swap/index.tsx b/src/pages/Swap/index.tsx index d00593132a..b5ce8f91eb 100644 --- a/src/pages/Swap/index.tsx +++ b/src/pages/Swap/index.tsx @@ -710,10 +710,14 @@ export function Swap({ loading={independentField === Field.INPUT && routeIsSyncing} numericalInputSettings={{ // We disable numerical input here if the selected token has tax, since we cannot guarantee exact_outputs for FOT tokens - disabled: outputTokenHasTax, + disabled: inputTokenHasTax || outputTokenHasTax, // Focus the input currency panel if the user tries to type into the disabled output currency panel onDisabledClick: () => inputCurrencyNumericalInputRef.current?.focus(), - disabledTooltipBody: , + disabledTooltipBody: ( + + ), }} />