diff --git a/front-ui/app/components/cart/cartIcon.js b/front-ui/app/components/cart/cartIcon.js index cb02be9..a4f933c 100644 --- a/front-ui/app/components/cart/cartIcon.js +++ b/front-ui/app/components/cart/cartIcon.js @@ -38,6 +38,10 @@ var CartIcon = React.createClass({ if (this.isMounted()) { this.setState(CartStore.getWholeCartState()); } + }, + + componentWillUnmount: function () { + CartStore.removeChangeListener(this._onChange); }