add fallback color
All checks were successful
Publish Docker Image / docker (push) Successful in 1m45s

This commit is contained in:
Lee 2023-07-10 05:15:39 +01:00
parent 0aeb7bea4b
commit c56e03ab9d

View File

@ -40,7 +40,7 @@ export default function Home() {
buttonTextColor: "text-white",
},
};
const selectedTheme = themeColors[theme]; // The theme to use
const selectedTheme = themeColors[theme] || themeColors.dark; // The theme to use (fallback of dark)
return (
<>