Skip to content

Commit

Permalink
Use Boolean constructor for conditional rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-marcellini committed Jul 26, 2022
1 parent f0c5de8 commit 6f79acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AddPlaidBankAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ class AddPlaidBankAccount extends React.Component {
<ActivityIndicator color={themeColors.spinner} size="large" />
</View>
)}
{(this.props.plaidData.error) && (
{Boolean(this.props.plaidData.error) && (
<Text style={[styles.formError, styles.mh5]}>
{this.props.plaidData.error}
</Text>
)}
{(token) && (
{Boolean(token) && (
<PlaidLink
token={token}
onSuccess={({publicToken, metadata}) => {
Expand Down

0 comments on commit 6f79acb

Please sign in to comment.