Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Hide timezone info if not provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Sep 10, 2024
1 parent b176ca8 commit 2a14aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/right_panel/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1738,13 +1738,13 @@ export const UserInfoHeader: React.FC<{
</Flex>
</Heading>
{presenceLabel}
<Tooltip label={timezoneInfo?.timezone ?? ""}>
{timezoneInfo && <Tooltip label={timezoneInfo?.timezone ?? ""}>
<span className="mx_UserInfo_timezone">
<Text size="sm" weight="regular">
{timezoneInfo?.friendly ?? ""}
</Text>
</span>
</Tooltip>
</Tooltip>}
<Text size="sm" weight="semibold" className="mx_UserInfo_profile_mxid">
<CopyableText getTextToCopy={() => userIdentifier} border={false}>
{userIdentifier}
Expand Down

0 comments on commit 2a14aee

Please sign in to comment.