mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-18 05:35:25 +00:00
Fixed issue where price graph disappears
This commit is contained in:
@@ -57,7 +57,7 @@ export const dataStore = readable(data, (set) => {
|
||||
lastTemp = data.t;
|
||||
setTimeout(getTemperatures, 2000);
|
||||
}
|
||||
if(lastPrice == null && data.pe && data.p) {
|
||||
if(lastPrice == null && data.pe && data.p != null) {
|
||||
lastPrice = data.p;
|
||||
getPrices();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user