Fixed issue where price graph disappears

This commit is contained in:
Gunnar Skjold 2023-10-04 07:01:13 +02:00
parent be9b7a16e4
commit 28a6a62907
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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();
}