Skip to content

Commit 69f9cc5

Browse files
authored
Merge pull request #2625 from topcoder-platform/fix_profile_page_loading_issue
Fix for Profile Page loading issue
2 parents 928addc + e2c8998 commit 69f9cc5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/shared/components/ProfilePage/ExternalLink/index.jsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const ExternalLink = ({ data, type }) => {
5757
</div>
5858
<div styleName="bottom">
5959
{
60-
type === 'github'
60+
type === 'github' && data !== null
6161
&& (
6262
<div>
6363
<div styleName="handle">
@@ -85,7 +85,7 @@ repositories
8585
)
8686
}
8787
{
88-
type === 'stackoverflow'
88+
type === 'stackoverflow' && data !== null
8989
&& (
9090
<div>
9191
<div styleName="handle">
@@ -113,7 +113,7 @@ answers
113113
)
114114
}
115115
{
116-
type === 'behance'
116+
type === 'behance' && data !== null
117117
&& (
118118
<div>
119119
<div styleName="handle">
@@ -141,7 +141,7 @@ likes
141141
)
142142
}
143143
{
144-
type === 'behance'
144+
type === 'behance' && data !== null
145145
&& (
146146
<div>
147147
<div styleName="handle">
@@ -169,7 +169,7 @@ likes
169169
)
170170
}
171171
{
172-
type === 'dribbble'
172+
type === 'dribbble' && data !== null
173173
&& (
174174
<div>
175175
<div styleName="handle">
@@ -197,7 +197,7 @@ likes
197197
)
198198
}
199199
{
200-
type === 'bitbucket'
200+
type === 'bitbucket' && data !== null
201201
&& (
202202
<div>
203203
<div styleName="handle">
@@ -225,7 +225,7 @@ repositories
225225
)
226226
}
227227
{
228-
type === 'twitter'
228+
type === 'twitter' && data !== null
229229
&& (
230230
<div>
231231
<div styleName="handle">
@@ -253,7 +253,7 @@ followers
253253
)
254254
}
255255
{
256-
type === 'linkedin'
256+
type === 'linkedin' && data !== null
257257
&& (
258258
<div>
259259
<div styleName="handle">
@@ -266,7 +266,7 @@ followers
266266
)
267267
}
268268
{
269-
type === 'weblink'
269+
type === 'weblink' && data !== null
270270
&& (
271271
<div>
272272
<p styleName="link-title">

0 commit comments

Comments
 (0)