ProfilePage: don't load account note panel until account is loaded

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1514
This commit is contained in:
Alex Gleason
2023-09-14 13:45:09 -05:00
parent b787b4cca7
commit d628249232

View File

@ -119,7 +119,7 @@ const ProfilePage: React.FC<IProfilePage> = ({ params, children }) => {
</BundleContainer>
)}
{features.notes && me !== account?.id && (
{features.notes && account && account?.id !== me && (
<BundleContainer fetchComponent={AccountNotePanel}>
{Component => <Component account={account} />}
</BundleContainer>