Skip to content

Commit

Permalink
fix: cards would always assume icon_image was set (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
akloeckner authored Apr 22, 2023
1 parent d34a758 commit f376732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit f376732

Please sign in to comment.