diff --git a/ui/components/ui/unit-input/unit-input.component.js b/ui/components/ui/unit-input/unit-input.component.js index 1a186e012..96537f4c4 100644 --- a/ui/components/ui/unit-input/unit-input.component.js +++ b/ui/components/ui/unit-input/unit-input.component.js @@ -38,7 +38,10 @@ export default class UnitInput extends PureComponent { const { value: propsValue } = this.props; const { value: stateValue } = this.state; - if (prevPropsValue !== propsValue && propsValue !== stateValue) { + if ( + prevPropsValue !== propsValue && + Number(propsValue) !== Number(stateValue) + ) { this.setState({ value: propsValue }); } }