fix several small problems

This commit is contained in:
martin-mfg
2025-12-30 20:32:34 +01:00
parent efe31de4f5
commit e66c1cc07a
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ const getCardColors = ({
theme,
}) => {
const defaultTheme = themes["default"];
const isThemeProvided = theme !== null && theme !== undefined;
const isThemeProvided = theme !== null && theme !== undefined && theme in themes;
// @ts-ignore
const selectedTheme = isThemeProvided ? themes[theme] : defaultTheme;