Skip to content

Commit

Permalink
fix: fix conversão
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel0109 committed Apr 10, 2024
1 parent 1bb0947 commit 2e70139
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/InfoCard/InfoCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,12 @@ export function InfoCard() {
</div>
<div className="flex flex-col ml-2.5">
<p className="text-sm">{e.trip_id?.trip_headsign ?? 'Circular'}</p>
{e.trip_id.route_id.route_type === 702 ?
<p className="text-xs">
Funcionamento: {format(convertTime(e.start_time), 'HH:mm')} - {format(convertTime(e.end_time), 'HH:mm')}
</p>
: null}
{e.trip_id.route_id.route_type === 702 && e.start_time && e.end_time ? (
<p className="text-xs">
Funcionamento: {format(convertTime(e.start_time), 'HH:mm')} - {format(convertTime(e.end_time), 'HH:mm')}
</p>
) : null}

</div>
</div>

Expand Down

0 comments on commit 2e70139

Please sign in to comment.