Skip to content

Gigs Optimization Update Release #5633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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