From 9c1f2f1b13597a4af5600c1c915bd59ecf14f578 Mon Sep 17 00:00:00 2001 From: Alexandr Kazachenko Date: Tue, 17 Oct 2023 18:42:58 +0600 Subject: [PATCH] fix(swap): don't reset swap form on recipient ens input (#3234) --- .../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 }