properly update method selected

This commit is contained in:
fernandomg 2020-06-01 14:51:45 -03:00
parent 45bbbc9967
commit 420b9cb58e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ const MethodsDropdown = ({ onChange }) => {
}
}, [abi])
React.useMemo(() => {
React.useEffect(() => {
setMethodsListFiltered(methodsList.filter(({ name }) => name.toLowerCase().includes(searchParams.toLowerCase())))
}, [methodsList, searchParams])