Skip to content

Commit

Permalink
Update shopping CTA logic
Browse files Browse the repository at this point in the history
Shows "Take me shopping!" button on /shops page if a shop is selected
  • Loading branch information
Matt-Yorkley committed Jun 17, 2020
1 parent 0889da4 commit 7e4b8e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/assets/stylesheets/darkswarm/cart-dropdown.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
}

.go-shopping {
display: none;
padding: 0 1.5em;

@include breakpoint(mobile) {
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/shop_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def no_open_order_cycles?
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))
Expand Down

0 comments on commit 7e4b8e0

Please sign in to comment.