<!-- insert_after '[data-hook=active]' -->
<div class="field">
  <%= f.label :icon %>
  <%= f.file_field :icon %>
  <%= image_tag @payment_method.icon.url(:normal) %>
</div>

<!-- insert_after '[data-hook=active]' -->
<div class="field">
  <%= label_tag nil, Spree.t(:icon) %>
  <%= file_field :payment_method, :icon %>
  <%= image_tag @payment_method.icon.url(:normal) %>
</div>

Fix error when uploading image
Fix error when uploading image
