From f9c993ef31a3e10d816e436f54eeb8b331f82bcf Mon Sep 17 00:00:00 2001 From: Michal Date: Tue, 31 Oct 2023 21:09:46 +0100 Subject: [PATCH] fix(swap): Reset errors when switch touched --- .../wallet-mobile/src/features/Swap/common/SwapFormProvider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wallet-mobile/src/features/Swap/common/SwapFormProvider.tsx b/apps/wallet-mobile/src/features/Swap/common/SwapFormProvider.tsx index 3c2938b36b..9c788cc4e2 100644 --- a/apps/wallet-mobile/src/features/Swap/common/SwapFormProvider.tsx +++ b/apps/wallet-mobile/src/features/Swap/common/SwapFormProvider.tsx @@ -331,6 +331,8 @@ const swapFormReducer = (state: SwapFormState, action: SwapFormAction) => { case SwapFormActionType.SwitchTouched: draft.sellQuantity.isTouched = state.buyQuantity.isTouched draft.buyQuantity.isTouched = state.sellQuantity.isTouched + draft.sellQuantity.error = undefined + draft.buyQuantity.error = undefined break