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 (#1877)
  • Loading branch information
BC-tymurbiedukhin authored Oct 21, 2020
1 parent 9458846 commit f93e4d7
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)
- Remove layout shifts to improve CLS indicator from Lighthouse performance report. [#1869](https://github.com/bigcommerce/cornerstone/pull/1869)
- Fix aria-labels for collapsibleFactory elements. [#1868](https://github.com/bigcommerce/cornerstone/pull/1868)
- Fixed social icons click behaviour after quick view modal reopening. [#1874](https://github.com/bigcommerce/cornerstone/pull/1874)
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 f93e4d7

Please sign in to comment.