Skip to content

Commit

Permalink
fix: fix useMemo usage
Browse files Browse the repository at this point in the history
  • Loading branch information
KillWolfVlad committed Oct 22, 2023
1 parent f2f5874 commit 9c09a65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/movies/hooks/useMoviesColumns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export const useMoviesColumns = (): number => {
if (matchesXs) {
return 2;
}

return 1;
}, [matchesXs, matchesSm, matchesMd, matchesLg, matchesXl]);

return moviesColumns ?? 1;
return moviesColumns;
};

0 comments on commit 9c09a65

Please sign in to comment.