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.

Fix rendering waitlist modal (#12438)

Łukasz Adamczykda091a5b3e33
diff --git a/storefront/app/views/themes/default/spree/page_sections/_product_details.html.erb b/storefront/app/views/themes/default/spree/page_sections/_product_details.html.erb
index f73241df49..2e10f6639c 100644
--- a/storefront/app/views/themes/default/spree/page_sections/_product_details.html.erb
+++ b/storefront/app/views/themes/default/spree/page_sections/_product_details.html.erb
@@ -85,7 +85,7 @@
<%= render 'spree/products/add_to_wishlist', variant: current_variant, css_classes: 'btn-secondary ml-5 h-12 !py-0 !px-3 border-default', icon_size: 24 %>
</div>
<% end %>
- <%= render 'spree/products/add_to_waitlist', variant: current_variant if spree.respond_to?(:waitlist_path) && current_variant.present? %>
+ <%= render 'spree/products/add_to_waitlist', variant: current_variant if spree.respond_to?(:waitlists_path) && current_variant.present? %>
</div>
<%= render 'spree/products/details', product: product %>