fix: cards would always assume icon_image was set (#957)

This commit is contained in:
akloeckner
2023-04-23 00:23:54 +02:00
committed by GitHub
parent d34a7581bb
commit f376732f0a

View File

@@ -227,7 +227,7 @@ class MiniGraphCard extends LitElement {
}
renderIcon() {
if (this.config.icon_image !== 'undefined') {
if (this.config.icon_image !== undefined) {
return html`
<div class="icon">
<img src="${this.config.icon_image}" height="25"/>