Skip to content

Commit

Permalink
Merge pull request #7086 from Expensify/cmartins-fixMaxLength
Browse files Browse the repository at this point in the history
Fix maxLength data type
  • Loading branch information
luacmartins authored Jan 7, 2022
2 parents 0e5afb7 + b25e646 commit 3cd9f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/Payments/AddDebitCardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class DebitCardPage extends Component {
placeholder={this.props.translate('addDebitCardPage.expirationDate')}
onChangeText={expirationDate => this.clearErrorAndSetValue('expirationDate', expirationDate)}
value={this.state.expirationDate}
maxLength="7"
maxLength={7}
errorText={this.getErrorText('expirationDate')}
keyboardType={CONST.KEYBOARD_TYPE.PHONE_PAD}
/>
Expand All @@ -221,7 +221,7 @@ class DebitCardPage extends Component {
label={this.props.translate('addDebitCardPage.cvv')}
onChangeText={securityCode => this.clearErrorAndSetValue('securityCode', securityCode)}
value={this.state.securityCode}
maxLength="4"
maxLength={4}
errorText={this.getErrorText('securityCode')}
keyboardType={CONST.KEYBOARD_TYPE.NUMBER_PAD}
/>
Expand Down

0 comments on commit 3cd9f1b

Please sign in to comment.