Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update backend/app/views/spree/admin/stores/_form.html.erb

Krzysztof Kalisz85f350884c20
diff --git a/backend/app/views/spree/admin/stores/_form.html.erb b/backend/app/views/spree/admin/stores/_form.html.erb
index a353c424c5..4ecbc1a2c1 100644
--- a/backend/app/views/spree/admin/stores/_form.html.erb
+++ b/backend/app/views/spree/admin/stores/_form.html.erb
@@ -8,7 +8,7 @@
</div>
<div class="card-body">
<%= f.field_container :logo, class: ['form-group'] do %>
- <% if @store.logo.attached? && current_store.logo.variable? %>
+ <% if @store.logo.attached? && @store.logo.variable? %>
<%= image_tag main_app.url_for(@store.logo.variant(resize: '244x104>')) %>
<% elsif @store.logo.attached? && current_store.logo.image? %>
<%= image_tag main_app.url_for(current_store.logo) %>