From 0f4f1077fee4cba948ac38f9034e13786e0893d5 Mon Sep 17 00:00:00 2001 From: Mati Dastugue Date: Fri, 3 Jul 2020 18:00:39 -0300 Subject: [PATCH] Allow repick address in contract interaction mode --- .../screens/ContractInteraction/EthAddressInput/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/EthAddressInput/index.tsx b/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/EthAddressInput/index.tsx index 0c11b16e..85a270d3 100644 --- a/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/EthAddressInput/index.tsx +++ b/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/EthAddressInput/index.tsx @@ -56,6 +56,11 @@ const EthAddressInput = ({ closeQrModal() } + const handleInputChange = (event: { target: { value?: string } | null }) => { + const { value } = event.target + setSelectedEntry({ address: value }) + } + return ( <> @@ -65,6 +70,7 @@ const EthAddressInput = ({ component={TextField} name={name} placeholder={text} + onChange={handleInputChange} testId={name} text={text} type="text"