Skip to content

Commit 9a13141

Browse files
committed
fix: Don't show bugged "My published snaps" heading when published doesn't have snaps
1 parent 75184f5 commit 9a13141

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

static/js/publisher/components/PublishedSnapList/PublishedSnapList.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,14 @@ function PublishedSnapList({
7979

8080
return (
8181
<Strip element="section" shallow>
82-
<div className="u-fixed-width">
83-
<h2 className="p-heading--4 u-float-left">My published snaps</h2>
84-
</div>
8582
{isEmpty && <EmptySnapList />}
8683

84+
{!isEmpty && (
85+
<div className="u-fixed-width">
86+
<h2 className="p-heading--4">My published snaps</h2>
87+
</div>
88+
)}
89+
8790
{shouldShowNewSnapNotification && <NewSnapNotification snap={snaps[0]} />}
8891

8992
{snaps.length > 0 && (

0 commit comments

Comments
 (0)