From c56e03ab9dde683fd10fbac48f4f4aaa639c3d2f Mon Sep 17 00:00:00 2001 From: Fascinated Date: Mon, 10 Jul 2023 05:15:39 +0100 Subject: [PATCH] add fallback color --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 4ee8de8..ad0420d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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 ( <>