Update shopping CTA logic

Shows "Take me shopping!" button on /shops page if a shop is selected
This commit is contained in:
Matt-Yorkley
2020-06-17 11:19:32 +02:00
parent ff6ba8819f
commit b189d06eb7

View File

@@ -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))