aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/clients_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/clients_controller.rb b/app/controllers/clients_controller.rb
index 6c18381..84596f0 100644
--- a/app/controllers/clients_controller.rb
+++ b/app/controllers/clients_controller.rb
@@ -21,7 +21,7 @@ class ClientsController < ApplicationController
.find_by(uuid: params[:uuid])
if @client.nil?
- redirect_back fallback_location: dashboard_index_path, alert: 'Client not found!'
+ return redirect_back fallback_location: dashboard_index_path, alert: 'Client not found!'
end
end
@@ -59,7 +59,7 @@ class ClientsController < ApplicationController
.find_by(uuid: params[:uuid])
if @client.nil?
- redirect_back fallback_location: dashboard_index_path, alert: 'Client not found!'
+ return redirect_back fallback_location: dashboard_index_path, alert: 'Client not found!'
end
@household_member_counts = @client.household_members.group(:member_type).count