Skip to content

Commit

Permalink
fix addresses 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Mar 20, 2018
1 parent 4e4b70d commit 0d307b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/journeys/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ const renderJourney = (j) => {
const dur = new Date(j.arrival) - new Date(j.departure)
let str = [
'From',
j.origin ? j.origin.name : renderCoords(j.origin),
j.origin ? j.origin.name || j.origin.address : renderCoords(j.origin),
'to',
j.destination ? j.destination.name : renderCoords(j.destination),
j.destination ? j.destination.name || j.destination.address : renderCoords(j.destination),
'in',
ms(dur)
].join(' ') + '.\n'
Expand Down

0 comments on commit 0d307b3

Please sign in to comment.