Skip to content

Commit

Permalink
Rely on the local variable to determine which is the first payment me…
Browse files Browse the repository at this point in the history
…thod
  • Loading branch information
elia committed Feb 1, 2023
1 parent 89262a9 commit a6fcfd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<%= radio_button_tag(
"order[payments_attributes][][payment_method_id]",
method.id,
method == @order.available_payment_methods.first,
method == methods.first,
id: id
) %>

Expand Down

0 comments on commit a6fcfd3

Please sign in to comment.