Skip to content

Commit

Permalink
Fixed boarded issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronan committed Mar 10, 2020
1 parent dd3f7df commit 52f3b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Arrival-iOS2/TripDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct TripDetailView: View {
let boardTime = moment(self.tripToShow.legs[0].originTime + " " + self.tripToShow.legs[0].originDate, dateFormate)

self.boardWait = boardTime.fromNow(true)
if (boardTime.isSameOrAfter(moment())) {
if (boardTime.isSameOrBefore(moment())) {
self.boarded = true
}

Expand Down

0 comments on commit 52f3b14

Please sign in to comment.