Skip to content

Commit

Permalink
fix: fix error, where I am not passing setBudget into the fetchData f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
tobi-bams committed Dec 20, 2023
1 parent 9d2a9dc commit a5e6e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/App/SideBar/Latest/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ type Props = {

// eslint-disable-next-line no-underscore-dangle
const _View = ({ isSearchResult }: Props) => {
const [nodeCount, setNodeCount] = useUserStore((s) => [s.nodeCount, s.setNodeCount])
const [nodeCount, setNodeCount, setBudget] = useUserStore((s) => [s.nodeCount, s.setNodeCount, s.setBudget])
const [fetchData] = [useDataStore((s) => s.fetchData)]

const getLatest = async () => {
if (nodeCount < 1) {
return
}

await fetchData()
await fetchData(setBudget)
setNodeCount('CLEAR')
}

Expand Down

0 comments on commit a5e6e5f

Please sign in to comment.