summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/_public_status_card.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep
index 510bf52..0bed878 100644
--- a/templates/_public_status_card.html.ep
+++ b/templates/_public_status_card.html.ep
@@ -72,7 +72,7 @@
</div>
<div class="center-align hide-on-small-only">
% for my $station (@{$journey->{route_after}}) {
- % if ($station->[0] eq $journey->{arr_name}) {
+ % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) {
% last;
% }
% if (($station->[1]{rt_arr_countdown} // 0) > 0) {
@@ -97,7 +97,7 @@
</div>
<div class="hide-on-med-and-up" style="margin-top: 2ex;">
% for my $station (@{$journey->{route_after}}) {
- % if ($station->[0] eq $journey->{arr_name}) {
+ % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) {
% last;
% }
% if (($station->[1]{rt_arr_countdown} // 0) > 0) {