initial approach removing gangs with <= 0 territory

This commit is contained in:
Dane Horn 2022-05-08 22:58:50 +02:00
parent b46718d188
commit a64c271175

@ -85,9 +85,11 @@ export function TerritorySubpage(): React.ReactElement {
</Typography>
</Box>
<Box sx={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)" }}>
{gangNames.map((name) => (
<OtherGangTerritory key={name} name={name} />
))}
{gangNames
.filter((name) => AllGangs[name].territory > 0)
.map((name) => (
<OtherGangTerritory key={name} name={name} />
))}
</Box>
<TerritoryInfoModal open={infoOpen} onClose={() => setInfoOpen(false)} />
</Container>