From 85cf7d2a57ab5df5db1d98ef8d01c4391d02e8ae Mon Sep 17 00:00:00 2001
From: Aaron Claydon <claydon.aaron@gmail.com>
Date: Sat, 19 Oct 2024 21:19:15 +0100
Subject: [PATCH] fix next stop error for merged

---
 src/views/Journeys/View.vue | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/Journeys/View.vue b/src/views/Journeys/View.vue
index 4834521..d41e7b2 100644
--- a/src/views/Journeys/View.vue
+++ b/src/views/Journeys/View.vue
@@ -463,8 +463,6 @@ export default {
         axios
           .get(`${API.URL}/core/service_alerts/matching/${journeyPoint.stop.PrimaryIdentifier}`)
           .then(response => {
-            console.log(journeyPoint.stop.PrimaryIdentifier, response.data)
-
             if (response.data !== null) {
               for (let index = 0; index < response.data.length; index++) {
                 const serviceAlert = response.data[index];
@@ -603,8 +601,10 @@ export default {
         if (
           !activeStop &&
           journey.RealtimeJourney != undefined &&
-          journey.RealtimeJourney.NextStopRef ===
-            journeyPoints[index].stop.PrimaryIdentifier
+          (
+            journey.RealtimeJourney.NextStopRef === journeyPoints[index].stop.PrimaryIdentifier
+            || journeyPoints[index].stop.OtherIdentifiers.includes(journey.RealtimeJourney.NextStopRef)
+          )
         ) {
           activeStop = true
         }