Skip to content

Commit a23bc24

Browse files
committed
fix: issue #4315
1 parent df328ec commit a23bc24

File tree

1 file changed

+11
-9
lines changed
  • src/projects/detail/components/BillingAccountField

1 file changed

+11
-9
lines changed

src/projects/detail/components/BillingAccountField/index.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,18 @@ class BillingAccountField extends React.Component {
9090
options={this.state.billingAccounts}
9191
isDisabled={this.state.billingAccounts.length === 0}
9292
/>
93-
{this.state.selectedBillingAccount ? <div className={styles.manageBillingAccountLinkWrapper}>
94-
<a
95-
className={styles.manageBillingAccountLink}
96-
href={`${SALESFORCE_BILLING_ACCOUNT_LINK}${this.state.selectedBillingAccount.value}`}
97-
target="_blank"
98-
rel="noopener noreferrer"
99-
>
93+
{this.state.selectedBillingAccount && (
94+
<div className={styles.manageBillingAccountLinkWrapper}>
95+
<a
96+
className={styles.manageBillingAccountLink}
97+
href={`${SALESFORCE_BILLING_ACCOUNT_LINK}${this.state.selectedBillingAccount.value}`}
98+
target="_blank"
99+
rel="noopener noreferrer"
100+
>
100101
Manage the billing account in Salesforce
101-
</a>
102-
</div>: null }
102+
</a>
103+
</div>
104+
)}
103105
</div>
104106
)
105107
}

0 commit comments

Comments
 (0)