From 9ca187e96e0ef05f71fdd4e08920d424ccdcd1a9 Mon Sep 17 00:00:00 2001 From: Alexandr Kazachenko Date: Tue, 17 Oct 2023 18:17:12 +0600 Subject: [PATCH] fix(swap): don't reset swap form on recipient ens input --- .../src/modules/trade/updaters/RecipientAddressUpdater.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cowswap-frontend/src/modules/trade/updaters/RecipientAddressUpdater.tsx b/apps/cowswap-frontend/src/modules/trade/updaters/RecipientAddressUpdater.tsx index 7e46c45981..d84bf88bac 100644 --- a/apps/cowswap-frontend/src/modules/trade/updaters/RecipientAddressUpdater.tsx +++ b/apps/cowswap-frontend/src/modules/trade/updaters/RecipientAddressUpdater.tsx @@ -10,9 +10,9 @@ export function RecipientAddressUpdater() { useEffect(() => { if (state?.recipientAddress !== recipientAddress) { - updateState?.({ recipientAddress }) + updateState?.({ ...state, recipientAddress }) } - }, [recipientAddress, state?.recipientAddress, updateState]) + }, [recipientAddress, state, updateState]) return null }