Skip to content

Commit 20f4bd0

Browse files
committed
chore: isOwnProfile is more obvious what it is for
1 parent d8c3782 commit 20f4bd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/views/User/UserProfile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function UserProfile(): React.ReactElement {
3737
const navigate = useNavigate();
3838
const { id } = useParams<{ id?: string }>();
3939
const { user: loggedInUser } = useContext<UserContextType>(UserContext);
40-
const isProfile = !id;
40+
const isOwnProfile = !id;
4141

4242
useEffect(() => {
4343
getUser(
@@ -152,7 +152,7 @@ export default function UserProfile(): React.ReactElement {
152152
)}
153153
</GridItem>
154154
</GridContainer>
155-
{isProfile || loggedInUser.admin ? (
155+
{isOwnProfile || loggedInUser.admin ? (
156156
<div style={{ marginTop: '50px' }}>
157157
<hr style={{ opacity: 0.2 }} />
158158
<div style={{ marginTop: '25px' }}>

0 commit comments

Comments
 (0)