Skip to content

Commit

Permalink
Fix(Promotions): Return 200 on benefits#edit
Browse files Browse the repository at this point in the history
In solidusio#5981, we accidentally set this render to a response code 422.
Since it's really the initial render of the form, it should stay a 200.
  • Loading branch information
mamhoff committed Dec 4, 2024
1 parent f7a1391 commit f9c577e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def edit
if params.dig(:benefit, :calculator_type)
@benefit.calculator_type = params[:benefit][:calculator_type]
end
render layout: false, status: :unprocessable_entity
render layout: false
end

def update
Expand Down

0 comments on commit f9c577e

Please sign in to comment.