diff --git a/src/app/components/Modification.jsx b/src/app/components/Modification.jsx index 15cf5a44..4212e3e0 100644 --- a/src/app/components/Modification.jsx +++ b/src/app/components/Modification.jsx @@ -37,7 +37,7 @@ export default class Modification extends TranslatedComponent { const name = this.props.name; let scaledValue = Math.round(Number(value) * 100); - // Limit to +1000% / -100% + // Limit to +1000% / -99.99% if (scaledValue > 100000) { scaledValue = 100000; value = 1000; @@ -52,6 +52,9 @@ export default class Modification extends TranslatedComponent { ship.setModification(m, name, scaledValue, true); this.setState({ value }); + } + + _updateFinished() { this.props.onChange(); } @@ -79,7 +82,7 @@ export default class Modification extends TranslatedComponent { } return ( -