Skip to content

Commit

Permalink
fix logo image error for active_strage 7.1.4 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
shida authored Oct 7, 2024
1 parent 418c239 commit 3f41643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/spree/frontend_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def logo(image_path = nil, options = {})
end

image_path ||= if logo_attachment&.attached? && logo_attachment&.variable?
main_app.cdn_image_url(logo_attachment.variant(resize: '244x104>'))
main_app.cdn_image_url(logo_attachment.variant(resize_to_limit: [244, 104]))
elsif logo_attachment&.attached? && logo_attachment&.image?
main_app.cdn_image_url(logo_attachment)
else
Expand Down

0 comments on commit 3f41643

Please sign in to comment.