From ef09edb2022ded3ef3ba73ba1d738899adbb16cd Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Wed, 14 Jun 2023 09:38:14 +0100 Subject: [PATCH] refactor: lint --- app/components/create_log_actions_component.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/components/create_log_actions_component.rb b/app/components/create_log_actions_component.rb index 8fb5c5990..55795c94a 100644 --- a/app/components/create_log_actions_component.rb +++ b/app/components/create_log_actions_component.rb @@ -38,17 +38,19 @@ class CreateLogActionsComponent < ViewComponent::Base end def upload_button_copy - if log_type == "lettings" + case log_type + when "lettings" "Upload lettings logs in bulk" - elsif log_type == "sales" + when "sales" "Upload sales logs in bulk" end end def upload_button_href - if log_type == "lettings" + case log_type + when "lettings" bulk_upload_lettings_log_path(id: "start") - elsif log_type == "sales" + when "sales" bulk_upload_sales_log_path(id: "start") end end