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

Commit 350341d

Browse files
authored
Fix inverted logic for showing UserWelcomeTop component (#9164)
1 parent fdde6b1 commit 350341d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/structures/HomePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ const HomePage: React.FC<IProps> = ({ justRegistered = false }) => {
9797
return <EmbeddedPage className="mx_HomePage" url={pageUrl} scrollbar={true} />;
9898
}
9999

100-
let introSection;
101-
if (justRegistered || !!OwnProfileStore.instance.getHttpAvatarUrl(AVATAR_SIZE)) {
100+
let introSection: JSX.Element;
101+
if (justRegistered || !OwnProfileStore.instance.getHttpAvatarUrl(AVATAR_SIZE)) {
102102
introSection = <UserWelcomeTop />;
103103
} else {
104104
const brandingConfig = SdkConfig.getObject("branding");

0 commit comments

Comments
 (0)