diff --git a/src/app/components/CostSection.jsx b/src/app/components/CostSection.jsx index d681e744..70123d1d 100644 --- a/src/app/components/CostSection.jsx +++ b/src/app/components/CostSection.jsx @@ -5,10 +5,10 @@ import Persist from '../stores/Persist'; import Ship from '../shipyard/Ship'; import { Insurance } from '../shipyard/Constants'; import TranslatedComponent from './TranslatedComponent'; -import { ShoppingIcon } from '../components/SvgIcons'; +import { ShoppingIcon } from './SvgIcons'; import autoBind from 'auto-bind'; import { assign, differenceBy, sortBy, reverse } from 'lodash'; -import { COST, FUEL_CAPACITY } from 'ed-forge/lib/ship-stats'; +import { FUEL_CAPACITY } from 'ed-forge/lib/ship-stats'; /** * Cost Section @@ -154,12 +154,18 @@ export default class CostSection extends TranslatedComponent { if (desc) { reverse(modules); } + + let totalCost = 0; for (let module of modules) { const cost = module.readMeta('cost'); const slot = module.getSlot(); if (cost) { let toggle = this._toggleExcluded.bind(this, slot); - rows.push(