Skip to content

Commit

Permalink
fix(catalog): CATALOG-2913 address STOCK_LEVEL_DISPLAY_SHOW_WHEN_LOW
Browse files Browse the repository at this point in the history
    setting for skus. We were not properly switching back and forth
    between skus that were above and below their own respective
    threshholds.
  • Loading branch information
Ziad Abdo committed May 12, 2018
1 parent 48c7a28 commit e223dc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/theme/common/product-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ export default class ProductDetails {
// if the stock container is hidden, show
viewModel.stock.$container.removeClass('u-hiddenVisually');

viewModel.stock.$input.text(data.stock);
} else {
viewModel.stock.$container.addClass('u-hiddenVisually');
viewModel.stock.$input.text(data.stock);
}

Expand Down

0 comments on commit e223dc3

Please sign in to comment.