From bd4ae72248fcf5ce43b945b98a4c98e6f9f656e4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 2 Jul 2023 14:01:48 -0500 Subject: [PATCH] Fix "0" in place of ProfileFieldsPanel when no fields are set Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1453 --- app/soapbox/pages/profile-page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/pages/profile-page.tsx b/app/soapbox/pages/profile-page.tsx index 2274db5c2..b2351e05b 100644 --- a/app/soapbox/pages/profile-page.tsx +++ b/app/soapbox/pages/profile-page.tsx @@ -120,7 +120,7 @@ const ProfilePage: React.FC = ({ params, children }) => { {Component => } - {account && account.fields.length && ( + {(account && account.fields.length > 0) && ( {Component => }