WSDOT / wsdot-ios-app

Source code for the WSDOT iOS application
GNU General Public License v3.0
10 stars 4 forks source link

Travel times needs to show "N/A" when current time is not available #290

Closed waynedyck closed 1 year ago

waynedyck commented 2 years ago

When the current_time is not available the field is set to "-1". Rather than showing "-1" to the end user it should display "N/A" as it does on the website.

{
current_time: -1,
endLocationLatitude: 0,
title: "Ellensburg to North Bend (WB)",
startLocationLongitude: 0,
travel_time_id: 115,
status: "open",
startLocationLatitude: 0,
via: "I-90 WB",
endLocationLongitude: 0,
updated_at: "2022-11-07 09:15 AM",
updated: "2022-11-07 09:15 AM",
avg_time: 73,
miles: 75.35
},