Skip to content

Commit 3daa352

Browse files
Merge pull request #5440 from topcoder-platform/gig-hotfix
Gig hotfix
2 parents e2162dd + f6b4867 commit 3daa352

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/shared/components/GUIKit/JobListCard/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import iconBlackSkills from 'assets/images/icon-skills.png';
1515
export 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>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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">

0 commit comments

Comments
 (0)