Skip to content

Commit 7bd255c

Browse files
authored
Merge pull request #5633 from topcoder-platform/develop
Gigs Optimization Update Release
2 parents d3a81cc + 15e0eb1 commit 7bd255c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ module.exports = {
256256
AUTH_SECRET: 'mysecret',
257257
VALID_ISSUERS: '["https://api.topcoder-dev.com", "https://api.topcoder.com", "https://topcoder-dev.auth0.com/", "https://auth.topcoder-dev.com/","https://topcoder.auth0.com/","https://auth.topcoder.com/"]',
258258
},
259+
CHAMELEON_VERIFICATION_SECRET: 'mysecret',
259260
},
260261
GROWSURF_CAMPAIGN_ID: '',
261262
GROWSURF_COOKIE: '_tc_gigs_ref',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default function GigApply(props) {
110110
) : (
111111
<React.Fragment>
112112
<a href={`${config.GIGS_PAGES_PATH}`} styleName="gig-list-btn">GO TO GIGS LIST</a>
113-
<a href={`${config.PLATFORM_SITE_URL}/earn/my-gigs`} styleName="primaryBtn">CHECK GIG APPLICATION STATUS</a>
113+
<a href={`${config.PLATFORM_SITE_URL}/earn/my-gigs?externalId=${job.slug}`} styleName="primaryBtn">CHECK GIG APPLICATION STATUS</a>
114114
</React.Fragment>
115115
)
116116
}

src/shared/containers/Gigs/RecruitCRMJobs.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class RecruitCRMJobsContainer extends React.Component {
179179
// build current locations dropdown based on all data
180180
// and filter by selected location
181181
jobsToDisplay = _.filter(jobs, (job) => {
182-
const country = job.country === 'Anywhere' || job.country === 'Any' ? 'All' : job.country;
182+
const country = !job.country || job.country === 'Anywhere' || job.country === 'Any' ? 'All' : job.country;
183183
// build dropdown
184184
const found = _.findIndex(locations, { label: country });
185185
if (found === -1) {
@@ -202,7 +202,7 @@ class RecruitCRMJobsContainer extends React.Component {
202202
// eslint-disable-next-line no-underscore-dangle
203203
const _term = term.toLowerCase();
204204
// name search
205-
if (job.name.toLowerCase().includes(_term)) return true;
205+
if (job && job.name && job.name.toLowerCase().includes(_term)) return true;
206206
// skills search
207207
const skills = _.find(job.custom_fields, ['field_name', 'Technologies Required']);
208208
if (skills && skills.value && skills.value.toLowerCase().includes(_term)) return true;

0 commit comments

Comments
 (0)