Skip to content
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
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,7 @@ workflows:
filters: &filters-staging
branches:
only:
- develop
- feature/link-thrive
- gig-referrals-hotfix
# Production builds are exectuted
# when PR is merged to the master
# Don't change anything in this configuration
Expand Down
10 changes: 8 additions & 2 deletions src/shared/components/Gigs/ReferralCode/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ function ReferralCode(props) {
<React.Fragment>
<span>Your referral link:</span>
{
growSurfState.data ? (
growSurfState.loading && <LoadingIndicator />
}
{
growSurfState.data && (
<div className={defautlStyle.rondedArea}>
<span>{`https://www.topcoder.com/gigs?referralId=${growSurfState.data.id}`}</span>
<PrimaryButton
Expand All @@ -92,7 +95,10 @@ function ReferralCode(props) {
{copyBtnText}
</PrimaryButton>
</div>
) : <LoadingIndicator />
)
}
{
growSurfState.error && <span>Ops, we couldn&apos;t load your profile. Please try again later or contact <a href="mailto:support@topcoder.com">support</a>.</span>
}
</React.Fragment>
)
Expand Down
1 change: 1 addition & 0 deletions src/shared/reducers/growSurf.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function onDone(state, { payload }) {
...state,
loading: false,
data: payload.data,
error: payload.error || false,
};
}

Expand Down