Fix route hashes bug
2 files changed,  +2, -4
M client/lib/es6/src/ffi/Route.res.mjs
+0, -2
1@@ -12,8 +12,6 @@ function extractRouteHashes(waypoints) {
2         let id = param[1].id;
3         if (id !== undefined) {
4           return id;
5-        } else {
6-          return param[0];
7         }
8       });
9     } else {
M client/src/ffi/Route.res
+2, -2
 1@@ -23,10 +23,10 @@ let extractRouteHashes = (waypoints: array<Waypoint.attributes>): array<string>
 2     | Some(routeDict) =>
 3       routeDict
 4       ->Dict.toArray
 5-      ->Array.filterMap(((key, route)) => {
 6+      ->Array.filterMap(((_key, route)) => {
 7         switch route.id {
 8         | Some(id) => Some(id)
 9-        | None => Some(key) // Fallback to the key if id is not present
10+        | None => None // Fallback to the key if id is not present
11         }
12       })
13     | None => []