Fix "0" in place of ProfileFieldsPanel when no fields are set

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1453
environments/review-develop-3zknud/deployments/3574^2
Alex Gleason 2023-07-02 14:01:48 -05:00
rodzic acdc781bc2
commit bd4ae72248
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

@ -120,7 +120,7 @@ const ProfilePage: React.FC<IProfilePage> = ({ params, children }) => {
<BundleContainer fetchComponent={ProfileMediaPanel}>
{Component => <Component account={account} />}
</BundleContainer>
{account && account.fields.length && (
{(account && account.fields.length > 0) && (
<BundleContainer fetchComponent={ProfileFieldsPanel}>
{Component => <Component account={account} />}
</BundleContainer>