Skip to content

Commit 69cedb5

Browse files
committed
add weeks to duration
1 parent 289d66a commit 69cedb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/components/Gigs/GigApply/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function GigApply(props) {
2727
recruitProfile,
2828
} = props;
2929
const retUrl = window.location.href;
30+
const duration = getCustomField(job.custom_fields, 'Duration');
3031

3132
return user ? (
3233
<div styleName="container">
@@ -248,7 +249,7 @@ export default function GigApply(props) {
248249
size="lg"
249250
/>
250251
<div styleName="last-input">
251-
<p>Are you ok to work with the duration of the gig? (<strong>{`${getCustomField(job.custom_fields, 'Duration')}`}</strong>) *</p>
252+
<p>Are you ok to work with the duration of the gig? (<strong>{/^\d+$/.test(duration) ? `${duration} Weeks` : duration}</strong>) *</p>
252253
<RadioButton
253254
onChange={val => onFormInputChange('durationConfirm', val)}
254255
errorMsg={formErrors.durationConfirm}

0 commit comments

Comments
 (0)