Skip to content

Commit

Permalink
fix(storefront): BCTHEME-233 Cornerstone - Unable to Compare Products…
Browse files Browse the repository at this point in the history
… from Recently Viewed Items
  • Loading branch information
BC-tymurbiedukhin committed Oct 20, 2020
1 parent 0564704 commit b6e1b4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Fixed comparing Products on 'Account - Recently Viewed' page. [#1877](https://github.com/bigcommerce/cornerstone/pull/1877)
- Unified browsers list that we support. [#1836](https://github.com/bigcommerce/cornerstone/pull/1836)
- Bump stencil utils and update hooks to account for refactor to drop Jquery in stencil utils [#1821](https://github.com/bigcommerce/cornerstone/pull/1821)

Expand Down
3 changes: 3 additions & 0 deletions assets/js/theme/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import stateCountry from './common/state-country';
import { classifyForm, Validators, insertStateHiddenField } from './common/utils/form-utils';
import { creditCardType, storeInstrument, Validators as CCValidators, Formatters as CCFormatters } from './common/payment-method';
import swal from './global/sweet-alert';
import compareProducts from './global/compare-products';

export default class Account extends PageManager {
constructor(context) {
Expand All @@ -25,6 +26,8 @@ export default class Account extends PageManager {
const $reorderForm = classifyForm('[data-account-reorder-form]');
const $invoiceButton = $('[data-print-invoice]');

compareProducts(this.context.urls);

// Injected via template
this.passwordRequirements = this.context.passwordRequirements;

Expand Down

0 comments on commit b6e1b4a

Please sign in to comment.