From 54a89d56ee1b00c828b9678f26432c93cfaa02b3 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Wed, 29 Nov 2023 10:04:33 +0000 Subject: [PATCH] Use starts with rather than == in logs nav items current checks --- app/helpers/navigation_items_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/navigation_items_helper.rb b/app/helpers/navigation_items_helper.rb index 7788b297d..3d398fd1b 100644 --- a/app/helpers/navigation_items_helper.rb +++ b/app/helpers/navigation_items_helper.rb @@ -45,11 +45,11 @@ module NavigationItemsHelper private def lettings_logs_current?(path) - path == lettings_logs_path + path.starts_with?(lettings_logs_path) end def sales_logs_current?(path) - path == sales_logs_path + path.starts_with?(sales_logs_path) end def users_current?(path)