From 698a6f3112a8691eff372bda4a93f96e2f3e6f4e Mon Sep 17 00:00:00 2001 From: Natalie Rose Date: Fri, 11 Sep 2026 09:34:12 +1000 Subject: [PATCH] Not all data is returned by server overview on a new server --- app/components/stats/generalTab.tsx | 48 ++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/app/components/stats/generalTab.tsx b/app/components/stats/generalTab.tsx index 5e65f501..5c573197 100644 --- a/app/components/stats/generalTab.tsx +++ b/app/components/stats/generalTab.tsx @@ -24,14 +24,46 @@ const GeneralTab: React.FunctionComponent = () => {
}, - { title: 'Buildings', component: () => }, - { title: 'Empires', component: () => }, - { title: 'Orbits', component: () => }, - { title: 'Ships', component: () => }, - { title: 'Spies', component: () => }, - { title: 'Stars', component: () => }, - { title: 'Glyphs', component: () => }, + { + title: 'Bodies', + component: () => , + shouldRender: typeof data.bodies !== 'undefined', + }, + { + title: 'Buildings', + component: () => , + shouldRender: typeof data.buildings !== 'undefined', + }, + { + title: 'Empires', + component: () => , + shouldRender: typeof data.empires !== 'undefined', + }, + { + title: 'Orbits', + component: () => , + shouldRender: typeof data.orbits !== 'undefined', + }, + { + title: 'Ships', + component: () => , + shouldRender: typeof data.ships !== 'undefined', + }, + { + title: 'Spies', + component: () => , + shouldRender: typeof data.spies !== 'undefined', + }, + { + title: 'Stars', + component: () => , + shouldRender: typeof data.stars !== 'undefined', + }, + { + title: 'Glyphs', + component: () => , + shouldRender: typeof data.glyphs !== 'undefined', + }, ]} />
-- 2.51.2