Skip to content

Commit

Permalink
Add missing dependency to useCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru Chern Chong committed Jul 20, 2024
1 parent 4bbdb6e commit 5491938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/MonthSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const MonthSelect = ({ months, defaultMonth }: MonthSelectProps) => {
const queryString = new URLSearchParams({ month }).toString();
router.replace(`${pathname}?${queryString}`);
},
[dispatch],
[dispatch, pathname, router],
);

return (
Expand Down

0 comments on commit 5491938

Please sign in to comment.