File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/projects/detail/components/BillingAccountField Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
2+ import moment from 'moment'
23import { HOC as hoc } from 'formsy-react'
34
45import Select from '../../../../components/Select/Select'
@@ -14,7 +15,7 @@ import styles from './styles.module.scss'
1415 * @returns {{ label: string, value: number } } option for Select
1516 */
1617const buildOption = ( billingAccountObj ) => ( {
17- label : `${ billingAccountObj . name } (${ billingAccountObj . tcBillingAccountId } )` ,
18+ label : `${ billingAccountObj . name } (${ billingAccountObj . tcBillingAccountId } ) ${ billingAccountObj . endDate ? ' - ' + moment ( billingAccountObj . endDate ) . format ( 'DD MMM YYYY' ) : '' } ` ,
1819 value : billingAccountObj . tcBillingAccountId
1920} )
2021
You can’t perform that action at this time.
0 commit comments