Skip to content

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Aug 9, 2024
1 parent f63e204 commit 3a30f97
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/vouchers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def handle_failed_save(format)
alert: error_message
end
format.js do
render "create_error", locals: { error_message: error_message }
render "error", locals: { error_message: error_message }
end
end

Expand All @@ -77,7 +77,7 @@ def handle_voucher_not_found
fallback_location: root_path)
end
format.js do
render "no_voucher_error",
render "error",
locals: { error_message: error_message }
end
end
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion app/views/vouchers/no_voucher_error.js.erb

This file was deleted.

0 comments on commit 3a30f97

Please sign in to comment.