Skip to content

Commit 41752fd

Browse files
committed
Fix showing of patron star on profile
1 parent 1f140a1 commit 41752fd

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

packages/app/src/app/pages/Profile/Header/UserInfo/ProfileInfo/index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ function ProfileInfo({ username, subscriptionSince, name, avatarUrl }) {
1414
<ProfileImage alt={username} height={175} width={175} src={avatarUrl} />
1515
<Margin bottom={3}>
1616
<Column justifyContent="space-between">
17-
{name && (
18-
<Name>
19-
{name}
20-
{subscriptionSince && (
21-
<PatronStar subscriptionSince={subscriptionSince} />
22-
)}
23-
</Name>
24-
)}
17+
{name && <Name>{name}</Name>}
2518
<Username main={!name}>
2619
{username}
2720
<a
@@ -31,6 +24,9 @@ function ProfileInfo({ username, subscriptionSince, name, avatarUrl }) {
3124
>
3225
<IconWrapper />
3326
</a>
27+
{subscriptionSince && (
28+
<PatronStar subscriptionSince={subscriptionSince} />
29+
)}
3430
</Username>
3531
</Column>
3632
</Margin>

packages/app/src/app/pages/Profile/Header/UserInfo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function UserInfo({ user }) {
1212
username={user.username}
1313
name={user.name}
1414
avatarUrl={user.avatarUrl}
15-
subscriptionSince={user.subscription && user.subscription.since}
15+
subscriptionSince={user.subscriptionSince}
1616
/>
1717
<Stats
1818
likeCount={user.receivedLikeCount}

0 commit comments

Comments
 (0)