Skip to content

Commit 6bbd1a2

Browse files
committed
fix: 🐛 fix compared to undefined
1 parent 266f6e2 commit 6bbd1a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

o365-card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ import {
183183
}
184184

185185
if (max_item == 0){
186-
if(typeof(attributeValue.size) != 'unavailable'){
186+
if(typeof(attributeValue) != 'undefined'){
187187
max_item = attributeValue.size;
188188
}else{
189189
max_item = 15;
@@ -256,7 +256,7 @@ import {
256256
//Email
257257
const attributeValue = this.hass.states[entityId].attributes['data'];
258258
if (max_item == 0){
259-
if(typeof(attributeValue.size) != 'unavailable'){
259+
if(typeof(attributeValue) != 'undefined'){
260260
max_item = attributeValue.size;
261261
}else{
262262
max_item = 15;

0 commit comments

Comments
 (0)