Skip to content

Commit

Permalink
Merge pull request #3765 from rushatgabhane/invalid-amount-fix
Browse files Browse the repository at this point in the history
Disable next button on invalid amount.
  • Loading branch information
jasperhuangg authored Jun 29, 2021
2 parents a1c742c + 95ff243 commit 25ce008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/steps/IOUAmountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class IOUAmountPage extends React.Component {
success
style={[styles.w100, styles.mt5]}
onPress={() => this.props.onStepComplete(this.state.amount)}
isDisabled={this.state.amount.length === 0}
isDisabled={!this.state.amount.length || parseFloat(this.state.amount) < 0.01}
text={this.props.translate('common.next')}
/>
</View>
Expand Down

0 comments on commit 25ce008

Please sign in to comment.