Skip to content

Commit f6ca6f8

Browse files
committed
fixed status bug for closed gigs
1 parent 6d2a2ea commit f6ca6f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/server/services/recruitCRM.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const JOB_FIELDS_RESPONSE = [
2626
'salary_type',
2727
'max_annual_salary',
2828
'job_description_text',
29+
'job_status',
2930
];
3031
const CANDIDATE_FIELDS_RESPONSE = [
3132
'id',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function GigDetails(props) {
6666
return (
6767
<div styleName="container">
6868
{
69-
job.error || job.enable_job_application_form !== 1 ? (
69+
job.error || job.job_status.id !== 1 || job.enable_job_application_form !== 1 ? (
7070
<div styleName="error">
7171
{ job.error ? <SadFace /> : null }
7272
<h3>{ job.error ? 'Gig does not exist' : 'This Gig has been Fulfilled'}</h3>

0 commit comments

Comments
 (0)