diff --git a/src/common/Card.tsx b/src/common/Card.tsx index e3cfc1d..b6db85d 100644 --- a/src/common/Card.tsx +++ b/src/common/Card.tsx @@ -34,8 +34,8 @@ export default class Card { this.hideBorder = parseBoolean(options.hide_border) this.hideTitle = parseBoolean(options.hide_title) this.colors = { - titleColor: getColor('title_color', options.title_color, options.theme), - bgColor: getColor('bg_color', options.bg_color, options.theme) + titleColor: getColor('title_color', options?.title_color, options?.theme), + bgColor: getColor('bg_color', options?.bg_color, options?.theme) } } }