From 420b9cb58e33564be57dc40583b84ef0a3453892 Mon Sep 17 00:00:00 2001 From: fernandomg Date: Mon, 1 Jun 2020 14:51:45 -0300 Subject: [PATCH] properly update method selected --- .../screens/ContractInteraction/MethodsDropdown/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/MethodsDropdown/index.tsx b/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/MethodsDropdown/index.tsx index ab4c4177..102a0cd7 100644 --- a/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/MethodsDropdown/index.tsx +++ b/src/routes/safe/components/Balances/SendModal/screens/ContractInteraction/MethodsDropdown/index.tsx @@ -44,7 +44,7 @@ const MethodsDropdown = ({ onChange }) => { } }, [abi]) - React.useMemo(() => { + React.useEffect(() => { setMethodsListFiltered(methodsList.filter(({ name }) => name.toLowerCase().includes(searchParams.toLowerCase()))) }, [methodsList, searchParams])