Remove duplicate conditionals already present in ShopHelper#shop_tabs, when these partials are rendered, these conditions will always be true

In the shops partial, by adding the else, we avoid rendering empty space with an empty
products list in case the shop is closed
This commit is contained in:
Luis Ramos
2020-04-21 15:04:02 +01:00
parent 77d7d2b804
commit 84c00fe215
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
- if no_open_order_cycles?
= render partial: "shop/closed_shop"
- elsif current_distributor.preferred_shopfront_message.present?
- else
.content
.row
.small-12.columns

View File

@@ -5,7 +5,7 @@
- if no_open_order_cycles?
= render partial: "shop/closed_shop"
- unless require_customer?
- else
.row
.small-12.columns
= render partial: "shop/products/form"