From b48fa0497a59defb0df5416fac10f718307d1820 Mon Sep 17 00:00:00 2001 From: Ed Castro Date: Wed, 16 Oct 2024 18:48:13 -0300 Subject: [PATCH] refactor: optimize conditional rendering in page.tsx --- apps/commune-validator/src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/commune-validator/src/app/page.tsx b/apps/commune-validator/src/app/page.tsx index 2f4c7e9..c64021d 100644 --- a/apps/commune-validator/src/app/page.tsx +++ b/apps/commune-validator/src/app/page.tsx @@ -169,12 +169,12 @@ export default function Page() {
{/* TODO: spinners */} - {moduleStakeData?.length ? ( + {moduleStakeData && moduleStakeData.length > 0 ? ( ) : ( )} - {subnetData?.length ? ( + {subnetData && subnetData.length > 0 ? ( ) : (