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

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1514
environments/review-bugfixes-s7zcy6/deployments/3825
Alex Gleason 2023-09-14 13:45:09 -05:00
rodzic b787b4cca7
commit d628249232
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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>