From a5e6e5fba5245322e08a67574bd4b2fec89d98bb Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 20 Dec 2023 19:31:43 +0100 Subject: [PATCH] fix: fix error, where I am not passing setBudget into the fetchData function --- src/components/App/SideBar/Latest/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/App/SideBar/Latest/index.tsx b/src/components/App/SideBar/Latest/index.tsx index e07ddbc43..6d0b811b9 100644 --- a/src/components/App/SideBar/Latest/index.tsx +++ b/src/components/App/SideBar/Latest/index.tsx @@ -15,7 +15,7 @@ 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 () => { @@ -23,7 +23,7 @@ const _View = ({ isSearchResult }: Props) => { return } - await fetchData() + await fetchData(setBudget) setNodeCount('CLEAR') }