From f5b39e8dc4f676c5443e89c91496b0dc851656a6 Mon Sep 17 00:00:00 2001 From: Ovidiu U Date: Mon, 6 Apr 2026 09:49:37 +0100 Subject: [PATCH] fix: add match default arm and escape colour in station-map popup --- resources/js/maps/station-map.js | 2 +- resources/views/livewire/public/station-search.blade.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/js/maps/station-map.js b/resources/js/maps/station-map.js index 8c76fe0..2200675 100644 --- a/resources/js/maps/station-map.js +++ b/resources/js/maps/station-map.js @@ -75,7 +75,7 @@ export function stationMap(results) { const bounds = []; this.results.forEach((station) => { - const colour = CLASSIFICATION_COLOURS[station.price_classification] ?? '#64748b'; + const colour = escHtml(CLASSIFICATION_COLOURS[station.price_classification] ?? '#64748b'); const miles = (station.distance_km * 0.621371).toFixed(1); const supermarketTag = station.is_supermarket ? 'Supermarket' diff --git a/resources/views/livewire/public/station-search.blade.php b/resources/views/livewire/public/station-search.blade.php index 4557dc0..a47fcd3 100644 --- a/resources/views/livewire/public/station-search.blade.php +++ b/resources/views/livewire/public/station-search.blade.php @@ -118,6 +118,7 @@ 'recent' => 'text-zinc-400 dark:text-zinc-500', 'stale' => 'text-amber-500 dark:text-amber-400', 'outdated' => 'text-red-500 dark:text-red-400', + default => 'text-zinc-400 dark:text-zinc-500', } }}"> {{ $station['price_classification_label'] }} ·