Skip to content

Commit

Permalink
cast to boolean to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperhuangg committed Jun 29, 2021
1 parent 7eb0f51 commit ea43339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/settings/PaymentsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class PaymentsPage extends React.Component {
<FixedFooter>
<Button
success
isDisabled={this.props.payPalMeUsername}
isDisabled={Boolean(this.props.payPalMeUsername)}
onPress={this.setPayPalMeUsername}
style={[styles.mt3]}
text={this.props.translate('paymentsPage.addPayPalAccount')}
Expand Down

0 comments on commit ea43339

Please sign in to comment.