mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update shopping CTA logic
Shows "Take me shopping!" button on /shops page if a shop is selected
This commit is contained in:
@@ -52,7 +52,7 @@ module ShopHelper
|
||||
end
|
||||
|
||||
def show_shopping_cta?
|
||||
return false if current_page?(main_app.shops_path)
|
||||
return false if current_page?(main_app.shops_path) && current_distributor.blank?
|
||||
|
||||
return false if current_distributor.present? &&
|
||||
current_page?(main_app.enterprise_shop_path(current_distributor))
|
||||
|
||||
Reference in New Issue
Block a user