We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c3782 commit 20f4bd0Copy full SHA for 20f4bd0
src/ui/views/User/UserProfile.tsx
@@ -37,7 +37,7 @@ export default function UserProfile(): React.ReactElement {
37
const navigate = useNavigate();
38
const { id } = useParams<{ id?: string }>();
39
const { user: loggedInUser } = useContext<UserContextType>(UserContext);
40
- const isProfile = !id;
+ const isOwnProfile = !id;
41
42
useEffect(() => {
43
getUser(
@@ -152,7 +152,7 @@ export default function UserProfile(): React.ReactElement {
152
)}
153
</GridItem>
154
</GridContainer>
155
- {isProfile || loggedInUser.admin ? (
+ {isOwnProfile || loggedInUser.admin ? (
156
<div style={{ marginTop: '50px' }}>
157
<hr style={{ opacity: 0.2 }} />
158
<div style={{ marginTop: '25px' }}>
0 commit comments