From 7c0d1f98419c74d6eb66bb1ac767971c867db173 Mon Sep 17 00:00:00 2001
From: Eugene Burmakin
Date: Mon, 19 May 2025 19:26:08 +0200
Subject: [PATCH] Fix distance unit in view
---
app/views/trips/show.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/trips/show.html.erb b/app/views/trips/show.html.erb
index 1d068953..023ccf42 100644
--- a/app/views/trips/show.html.erb
+++ b/app/views/trips/show.html.erb
@@ -15,7 +15,7 @@
<%= human_date(@trip.started_at) %> - <%= human_date(@trip.ended_at) %>
- <%= render "trips/countries", trip: @trip, current_user: current_user %>
+ <%= render "trips/countries", trip: @trip, current_user: current_user, distance_unit: current_user.safe_settings.distance_unit %>