File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import iconBlackSkills from 'assets/images/icon-skills.png';
15
15
export default function JobListCard ( {
16
16
job,
17
17
} ) {
18
+ const duration = getCustomField ( job . custom_fields , 'Duration' ) ;
18
19
let skills = getCustomField ( job . custom_fields , 'Technologies Required' ) ;
19
20
if ( skills !== 'n/a' ) {
20
21
skills = skills . split ( ',' ) ;
@@ -39,7 +40,7 @@ export default function JobListCard({
39
40
< IconBlackPayment /> ${ job . min_annual_salary } - { job . max_annual_salary } (USD) / { getSalaryType ( job . salary_type ) }
40
41
</ div >
41
42
< div styleName = "icon-val" >
42
- < IconBlackDuration /> { getCustomField ( job . custom_fields , 'Duration' ) }
43
+ < IconBlackDuration /> { / ^ \d + $ / . test ( duration ) ? ` ${ duration } Weeks` : duration }
43
44
</ div >
44
45
< div styleName = "row-btn" >
45
46
< Link styleName = "primary-green-md" to = { `${ config . GIGS_PAGES_PATH } /${ job . slug } ` } > VIEW DETAILS</ Link >
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export default function GigDetails(props) {
57
57
const [ isModalOpen , setModalOpen ] = useState ( false ) ;
58
58
const [ isLoginModalOpen , setLoginModalOpen ] = useState ( false ) ;
59
59
let inputRef ;
60
+ const duration = getCustomField ( job . custom_fields , 'Duration' ) ;
60
61
61
62
useEffect ( ( ) => {
62
63
if ( referralId && formData . email && isEmpty ( formErrors ) ) onSendClick ( ) ;
@@ -95,7 +96,7 @@ export default function GigDetails(props) {
95
96
< IconDuration />
96
97
< div styleName = "infos-data" >
97
98
Duration
98
- < strong > { getCustomField ( job . custom_fields , 'Duration' ) } </ strong >
99
+ < strong > { / ^ \d + $ / . test ( duration ) ? ` ${ duration } Weeks` : duration } </ strong >
99
100
</ div >
100
101
</ div >
101
102
< div styleName = "infos-item" >
You can’t perform that action at this time.
0 commit comments