From b189d06eb76ab7b061ea81d25f88b3f153e9e7da Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 17 Jun 2020 11:19:32 +0200 Subject: [PATCH] Update shopping CTA logic Shows "Take me shopping!" button on /shops page if a shop is selected --- app/helpers/shop_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/shop_helper.rb b/app/helpers/shop_helper.rb index 32bb144d5f..8da650c4ef 100644 --- a/app/helpers/shop_helper.rb +++ b/app/helpers/shop_helper.rb @@ -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))