Skip to content

Commit

Permalink
fix(webapp): fix loop callback in account page
Browse files Browse the repository at this point in the history
  • Loading branch information
tetogomez committed Nov 28, 2022
1 parent a24f62d commit 1bdf1a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/SearchBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const SearchBar = ({
const debouncedFilter = useDebounceState(filters, delay)

const handleOnChange = (key) => (event) => {
setFilters(prev => ({ ...prev, [key]: event.target.value }))
setFilters((prev) => ({ ...prev, [key]: event.target.value }))
}

const handleOnClick = () => {
Expand All @@ -60,7 +60,7 @@ const SearchBar = ({
useEffect(() => {
onChange(filters)
// eslint-disable-next-line
}, [debouncedFilter, onChange])
}, [debouncedFilter])

return (
<>
Expand Down
1 change: 0 additions & 1 deletion webapp/src/routes/Accounts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const Accounts = () => {
onSubmitAction={handleSubmitAction}
tableData={tableData}
onGetTableRows={handleGetTableRows}
// onGetTableRows={() => console.log('callback render', account)}
/>
)}
</>
Expand Down

0 comments on commit 1bdf1a7

Please sign in to comment.