Skip to content

Commit

Permalink
Merge pull request #5632 from topcoder-platform/gigs-optimize
Browse files Browse the repository at this point in the history
Gigs Optimization On Community-App
  • Loading branch information
LieutenantRoger authored Jul 7, 2021
2 parents 609b41f + 657d4d0 commit 15e0eb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ module.exports = {
AUTH_SECRET: 'mysecret',
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/"]',
},
CHAMELEON_VERIFICATION_SECRET: 'mysecret',
},
GROWSURF_CAMPAIGN_ID: '',
GROWSURF_COOKIE: '_tc_gigs_ref',
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/Gigs/GigApply/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function GigApply(props) {
) : (
<React.Fragment>
<a href={`${config.GIGS_PAGES_PATH}`} styleName="gig-list-btn">GO TO GIGS LIST</a>
<a href={`${config.PLATFORM_SITE_URL}/earn/my-gigs`} styleName="primaryBtn">CHECK GIG APPLICATION STATUS</a>
<a href={`${config.PLATFORM_SITE_URL}/earn/my-gigs?externalId=${job.slug}`} styleName="primaryBtn">CHECK GIG APPLICATION STATUS</a>
</React.Fragment>
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/shared/containers/Gigs/RecruitCRMJobs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class RecruitCRMJobsContainer extends React.Component {
// build current locations dropdown based on all data
// and filter by selected location
jobsToDisplay = _.filter(jobs, (job) => {
const country = job.country === 'Anywhere' || job.country === 'Any' ? 'All' : job.country;
const country = !job.country || job.country === 'Anywhere' || job.country === 'Any' ? 'All' : job.country;
// build dropdown
const found = _.findIndex(locations, { label: country });
if (found === -1) {
Expand All @@ -202,7 +202,7 @@ class RecruitCRMJobsContainer extends React.Component {
// eslint-disable-next-line no-underscore-dangle
const _term = term.toLowerCase();
// name search
if (job.name.toLowerCase().includes(_term)) return true;
if (job && job.name && job.name.toLowerCase().includes(_term)) return true;
// skills search
const skills = _.find(job.custom_fields, ['field_name', 'Technologies Required']);
if (skills && skills.value && skills.value.toLowerCase().includes(_term)) return true;
Expand Down

0 comments on commit 15e0eb1

Please sign in to comment.