From 6a3709504e4f41f5174a3996841203019e47ce56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB?= Date: Sat, 1 Aug 2026 22:35:29 +0200 Subject: [PATCH] fix(dashboard): use max price for priciest gas --- app/Features/Dashboard/Services/DashboardService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Features/Dashboard/Services/DashboardService.php b/app/Features/Dashboard/Services/DashboardService.php index f92f79e..633e8f0 100644 --- a/app/Features/Dashboard/Services/DashboardService.php +++ b/app/Features/Dashboard/Services/DashboardService.php @@ -26,7 +26,7 @@ class DashboardService $gas = $this->repository->retrieveGas(); $gNow = $gas->whereBetween('startDate', [$now->copy()->setHour(0), $now])->first(); $gCheapest = $gas->where('totalPriceTaxIncluded', $gas->min('totalPriceTaxIncluded'))->first(); - $gPriciest = $gas->where('totalPriceTaxIncluded', $gas->min('totalPriceTaxIncluded'))->first(); + $gPriciest = $gas->where('totalPriceTaxIncluded', $gas->max('totalPriceTaxIncluded'))->first(); return new DashboardData( $eNow,