Skip to content

Commit 7d4c437

Browse files
authored
Merge pull request #31 from lox/fix-issue-27
2 parents 6ec318b + 91c31cc commit 7d4c437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bulb.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class Bulb{
6161
}
6262

6363
public hasKelvin(){
64-
return this.HardwareInfo?.productFeatures.temperature_range?.reduce((a, b) => b - a) || 0 > 0;
64+
return this.HardwareInfo?.productFeatures?.temperature_range?.reduce((a, b) => b - a) || 0 > 0;
6565
}
6666

6767
public getMinKelvin(){
@@ -257,4 +257,4 @@ export default class Bulb{
257257
return 1000000 / value;
258258
}
259259

260-
}
260+
}

0 commit comments

Comments
 (0)