Skip to content

Commit

Permalink
fix(watchos): crash at the final metro station
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Nov 15, 2024
1 parent c319beb commit 43458a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/mobile/metro-now/metro-now Watch App/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ struct ContentView: View {
let stops,
let closestStop = findClosestStop(to: location, stops: stops)
{
let platforms = closestStop.platforms.filter { $0.routes.count > 0 }

StopDeparturesView(
title: closestStop.name,
platforms: closestStop.platforms.map {
platform in
platforms: platforms.map { platform in

MainPagePlatform(
id: platform.id,
metroLine: MetroLine(rawValue: platform.routes[0].name),
Expand Down

0 comments on commit 43458a0

Please sign in to comment.