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', + }, ]} />