aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-01 19:20:29 -0400
committerIvan Chen <ivan@tagg.id>2021-06-01 19:20:29 -0400
commitd5eecec87e4893ea39670dde5a14fd919e7c2f28 (patch)
treed9c48adedb3f503b68f347479b238ddd14bf81d3 /src/components
parentc71f1279af4ba37b5dce784cae4090ae857f85c1 (diff)
Cleanup code
Diffstat (limited to 'src/components')
-rw-r--r--src/components/profile/ProfileBadges.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/profile/ProfileBadges.tsx b/src/components/profile/ProfileBadges.tsx
index 3456afe9..978211da 100644
--- a/src/components/profile/ProfileBadges.tsx
+++ b/src/components/profile/ProfileBadges.tsx
@@ -114,7 +114,7 @@ const ProfileBadges: React.FC<ProfileBadgesProps> = ({userXId, screenType}) => {
<BadgeDetailView
userXId={userXId}
screenType={screenType}
- isEditable={userXId === undefined}
+ isEditable={isOwnProfile}
userFullName={name}
setBadgeViewVisible={setIsEditBadgeModalVisible}
/>