Skip to content

Commit

Permalink
fix: correct useEffect dep
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Jul 22, 2024
1 parent d293eb4 commit fcc0463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/Events/useEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const useEvents = () => {
}
};
getEvents();
}, []);
}, [fetchEvents]);

return events;
};

0 comments on commit fcc0463

Please sign in to comment.