Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit cffff54

Browse files
author
dengjun
committed
Merge branch 'issues-130' into issues-131
2 parents 8fb9930 + f25527e commit cffff54

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ workflows:
7676
filters:
7777
branches:
7878
only:
79-
- integration-b
79+
- issues-130
8080

8181
# Production builds are exectuted only on tagged commits to the
8282
# master branch.

src/api/mock-api/mock-api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ app.use((req, res, next) => {
2121

2222
app.get("/api/recruit/profile", (req, res) => {
2323
const result = {
24+
hasProfile: false,
2425
phone: "555-555-55-55",
2526
resume: "https://resume.topcoder.com/1234567",
2627
availability: true,

src/api/services/ProfileService.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ async function getMyProfile(currentUser) {
3131
email: _.get(member, "email", null),
3232
city: _.get(member, "addresses[0].city", null),
3333
country: _.get(member, "competitionCountryCode", null),
34+
hasProfile: _.get(recruitProfile, "hasProfile", false),
3435
phone: _.get(recruitProfile, "phone", null),
3536
resume: _.get(recruitProfile, "resume", null),
3637
availability: _.get(recruitProfile, "availability", true),

src/containers/MyGigs/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const MyGigs = ({
5353
<Button
5454
isPrimary
5555
size="lg"
56+
disabled={!(profile && profile.hasProfile)}
5657
onClick={() => {
5758
setOpenUpdateProfile(true);
5859
}}

src/services/myGigs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ async function getProfile() {
114114
country: profile.country,
115115
phone: profile.phone,
116116
file: null,
117+
hasProfile: profile.hasProfile,
117118
status: profile.availability
118119
? GIG_STATUS.AVAILABLE
119120
: GIG_STATUS.UNAVAILABLE,

0 commit comments

Comments
 (0)