Skip to content

Commit

Permalink
Add dependency array to use effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder committed Oct 3, 2024
1 parent cb5ee54 commit f63c074
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const LanguageSelector = ({
return () => {
languageSelector.off(accordionElement);
};
});
}, []);

// If there are 3 or more items, render as an accordion
return (
Expand Down

0 comments on commit f63c074

Please sign in to comment.