From cd871841696dcde58963e7139f14688d07b8be06 Mon Sep 17 00:00:00 2001 From: Cmdr McDonald Date: Mon, 17 Oct 2016 19:30:58 +0100 Subject: [PATCH] Apply discounts when ship updates --- src/app/components/CostSection.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/CostSection.jsx b/src/app/components/CostSection.jsx index 305eb21e..699f5d20 100644 --- a/src/app/components/CostSection.jsx +++ b/src/app/components/CostSection.jsx @@ -606,6 +606,7 @@ export default class CostSection extends TranslatedComponent { } if (nextProps.ship != this.props.ship || nextProps.code != this.props.code) { + nextProps.ship.applyDiscounts(Persist.getShipDiscount(), Persist.getModuleDiscount()); this._updateAmmoCosts(nextProps.ship); this._updateRetrofit(nextProps.ship, retrofitShip); this._sortCost(nextProps.ship);