Skip to content

Commit 0cda9ea

Browse files
committed
gigs feed error handling with text
1 parent 032c4ef commit 0cda9ea

File tree

1 file changed

+3
-2
lines changed
  • src/shared/components/Dashboard/GigsFeed

1 file changed

+3
-2
lines changed

src/shared/components/Dashboard/GigsFeed/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-nested-ternary */
12
/**
23
* Gigs Feed component
34
*/
@@ -27,8 +28,8 @@ export default function GigsFeed({
2728
</a>
2829
</div>
2930
<Scrollbars styleName="gigs">
30-
{loading || !gigs ? <div styleName="loading"><LoadingIndicator /></div>
31-
: gigs.map(gig => (
31+
{loading ? <div styleName="loading"><LoadingIndicator /></div>
32+
: gigs.message ? <span>{gigs.message}</span> : gigs.map(gig => (
3233
<div styleName="row" key={`dashboard-gigs-feed-${gig.externalId}`}>
3334
<a
3435
href={`${config.URL.COMMUNITY_APP}/gigs/${gig.externalId}`}

0 commit comments

Comments
 (0)