@ledvance/ui-biz-bundle 1.1.119 → 1.1.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -122,7 +122,7 @@ const EnergyConsumptionPage = (props: {theme?: ThemeType}) => {
|
|
|
122
122
|
}, [state.totalElectricity, state.energyGeneration.totalElectricity])
|
|
123
123
|
|
|
124
124
|
useUpdateEffect(() =>{
|
|
125
|
-
if(totalElectricity
|
|
125
|
+
if(totalElectricity >= 0 && timeZoneCity){
|
|
126
126
|
const letOut = carbonDioxideEmission(timeZoneCity, countryAndRegion) || 0
|
|
127
127
|
state.co2Saved = localeNumber((letOut * totalElectricity) / 1000, 4)
|
|
128
128
|
}
|