Merge branch 'fix-profile-fields-panel' into 'develop'

Fix profile fields panel from not showing up

See merge request soapbox-pub/soapbox!2586
This commit is contained in:
Alex Gleason 2023-07-02 04:14:59 +00:00
commit b1a775c2a9

View file

@ -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 && (
<BundleContainer fetchComponent={ProfileFieldsPanel}>
{Component => <Component account={account} />}
</BundleContainer>