File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ workflows:
290290 filters :
291291 branches :
292292 only :
293- - social-image-fix
293+ - free
294294 # This is beta env for production soft releases
295295 - " build-prod-beta " :
296296 context : org-global
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import iconBlackSkills from 'assets/images/icon-skills.png';
1515export default function JobListCard ( {
1616 job,
1717} ) {
18+ const duration = getCustomField ( job . custom_fields , 'Duration' ) ;
1819 let skills = getCustomField ( job . custom_fields , 'Technologies Required' ) ;
1920 if ( skills !== 'n/a' ) {
2021 skills = skills . split ( ',' ) ;
@@ -39,7 +40,7 @@ export default function JobListCard({
3940 < IconBlackPayment /> ${ job . min_annual_salary } - { job . max_annual_salary } (USD) / { getSalaryType ( job . salary_type ) }
4041 </ div >
4142 < div styleName = "icon-val" >
42- < IconBlackDuration /> { getCustomField ( job . custom_fields , 'Duration' ) }
43+ < IconBlackDuration /> { / ^ \d + $ / . test ( duration ) ? ` ${ duration } Weeks` : duration }
4344 </ div >
4445 < div styleName = "row-btn" >
4546 < 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) {
5757 const [ isModalOpen , setModalOpen ] = useState ( false ) ;
5858 const [ isLoginModalOpen , setLoginModalOpen ] = useState ( false ) ;
5959 let inputRef ;
60+ const duration = getCustomField ( job . custom_fields , 'Duration' ) ;
6061
6162 useEffect ( ( ) => {
6263 if ( referralId && formData . email && isEmpty ( formErrors ) ) onSendClick ( ) ;
@@ -95,7 +96,7 @@ export default function GigDetails(props) {
9596 < IconDuration />
9697 < div styleName = "infos-data" >
9798 Duration
98- < strong > { getCustomField ( job . custom_fields , 'Duration' ) } </ strong >
99+ < strong > { / ^ \d + $ / . test ( duration ) ? ` ${ duration } Weeks` : duration } </ strong >
99100 </ div >
100101 </ div >
101102 < div styleName = "infos-item" >
You can’t perform that action at this time.
0 commit comments