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 storefront/app/views/themes/default/spree/policies/show.html.erb

Damian Legawiec7d66e1a21e4e
diff --git a/storefront/app/views/themes/default/spree/policies/show.html.erb b/storefront/app/views/themes/default/spree/policies/show.html.erb
index 3c20e86e43..f375aab73d 100644
--- a/storefront/app/views/themes/default/spree/policies/show.html.erb
+++ b/storefront/app/views/themes/default/spree/policies/show.html.erb
@@ -3,7 +3,7 @@
<%= Spree.t(params[:id]) %>
</h1>
- <% if @policy %>
+ <% if @policy.present? %>
<p class="mb-8 text-center lg:text-left">
<%= Spree.t("storefront.policies.last_update_at", date: l(@policy.updated_at.to_date)) %>
</p>