Fixed loading order of json and when to display price graph

This commit is contained in:
Gunnar Skjold
2024-05-23 19:12:38 +02:00
parent 703c68a2cf
commit faa468b287
5 changed files with 33 additions and 31 deletions

View File

@@ -601,7 +601,7 @@ void AmsWebServer::dataJson() {
ea->getCostThisMonth(),
ea->getProducedThisMonth(),
ea->getIncomeThisMonth(),
ps == NULL ? "false" : "true",
price == PRICE_NO_VALUE ? "false" : "true",
priceRegion.c_str(),
priceCurrency.c_str(),
meterState->getLastError(),