Skip to content

Commit

Permalink
fix: update variable name to be more semantic
Browse files Browse the repository at this point in the history
  • Loading branch information
kweeuhree committed Oct 1, 2024
1 parent 94bf2be commit cd8801c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function useImportance(lists) {
);

useEffect(() => {
const sorted = [...lists].sort(sortByImportance);
setSortedLists(sorted);
const sortedByImportance = [...lists].sort(sortByImportance);
setSortedLists(sortedByImportance);
}, [lists, importantLists]);

const setImportantList = (listPath) => {
Expand Down

0 comments on commit cd8801c

Please sign in to comment.