Fix energy graph when sum is 0 (#9914)

This commit is contained in:
Bram Kragten 2021-08-30 22:06:58 +02:00 committed by GitHub
parent dd9a9b34d1
commit 324658a36b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -386,7 +386,7 @@ export class HuiEnergyUsageGraphCard
if (stat.sum === null) {
return;
}
if (!prevValue) {
if (prevValue === undefined) {
prevValue = stat.sum;
return;
}