We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 990b0cd commit e9361c3Copy full SHA for e9361c3
src/projects/detail/components/BillingAccountField/index.js
@@ -15,7 +15,7 @@ import styles from './styles.module.scss'
15
* @returns {{ label: string, value: number }} option for Select
16
*/
17
const buildOption = (billingAccountObj) => ({
18
- label: `${billingAccountObj.name} (${billingAccountObj.tcBillingAccountId}) - ${moment(billingAccountObj.endDate).format('DD MMM YYYY')}`,
+ label: `${billingAccountObj.name} (${billingAccountObj.tcBillingAccountId}) ${billingAccountObj.endDate ? ' - '+ moment(billingAccountObj.endDate).format('DD MMM YYYY'): ''}`,
19
value: billingAccountObj.tcBillingAccountId
20
})
21
0 commit comments