Skip to content

Commit 8768f91

Browse files
authored
Merge pull request #5705 from topcoder-platform/develop
Gig referrals issue fix
2 parents dd59995 + 7cb0256 commit 8768f91

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ workflows:
371371
branches:
372372
only:
373373
- develop
374-
- feature/link-thrive
375374
# Production builds are exectuted
376375
# when PR is merged to the master
377376
# Don't change anything in this configuration

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ function ReferralCode(props) {
6868
<React.Fragment>
6969
<span>Your referral link:</span>
7070
{
71-
growSurfState.data ? (
71+
growSurfState.loading && <LoadingIndicator />
72+
}
73+
{
74+
growSurfState.data && (
7275
<div className={defautlStyle.rondedArea}>
7376
<span>{`https://www.topcoder.com/gigs?referralId=${growSurfState.data.id}`}</span>
7477
<PrimaryButton
@@ -92,7 +95,10 @@ function ReferralCode(props) {
9295
{copyBtnText}
9396
</PrimaryButton>
9497
</div>
95-
) : <LoadingIndicator />
98+
)
99+
}
100+
{
101+
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>
96102
}
97103
</React.Fragment>
98104
)

src/shared/reducers/growSurf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function onDone(state, { payload }) {
2626
...state,
2727
loading: false,
2828
data: payload.data,
29+
error: payload.error || false,
2930
};
3031
}
3132

0 commit comments

Comments
 (0)