summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traveling.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 70b2246..d76bb9b 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -326,7 +326,7 @@ sub journey_details {
checkout_id => $checkout_id,
verbose => 1,
);
- if ( @journeys == 0 or not $journeys[0]{completed}) {
+ if ( @journeys == 0 or $journeys[0]{ids}[1] != $checkout_id) {
$self->render(
'journey',
error => 'notfound',