Skip to content

Commit

Permalink
Update Header.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
foreverfl committed Dec 16, 2024
1 parent aa2aad6 commit 8aa0bf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Header: React.FC = () => {
const [textColor, setTextColor] = useState("text-white");

const getFlagClass = (lang: string) => {
switch (lang) {
switch (lang.toUpperCase()) {
case "EN":
return "fi fi-us";
case "JP":
Expand All @@ -32,6 +32,7 @@ const Header: React.FC = () => {
const changeLanguage = (lang: string) => {
i18n.changeLanguage(lang);
setLanguage(lang.toUpperCase());
setShowLanguageMenu(false);
};

useEffect(() => {
Expand Down

0 comments on commit 8aa0bf4

Please sign in to comment.