Skip to content

Commit

Permalink
Merge pull request #9369 from Expensify/cmartins-fixDeployBlocker
Browse files Browse the repository at this point in the history
Fix issue with IOU amount

(cherry picked from commit 25fdf0b)
  • Loading branch information
mountiny authored and OSBotify committed Jun 9, 2022
1 parent eb9263a commit e056c84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/TextInput/BaseTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ class BaseTextInput extends Component {

componentDidUpdate() {
// Activate or deactivate the label when value is changed programmatically from outside
// Only update when value prop is provided
const inputValue = this.props.value || this.input.value;
if (_.isEmpty(inputValue) || this.state.value === inputValue) {
const inputValue = _.isUndefined(this.props.value) ? this.input.value : this.props.value;
if (_.isUndefined(inputValue) || this.state.value === inputValue) {
return;
}

Expand Down

0 comments on commit e056c84

Please sign in to comment.