This commit is contained in:
Olivier Gagnon 2022-03-10 22:17:01 -05:00
parent d955398a68
commit dfb29626f3

@ -189,14 +189,15 @@ export function FactionRoot(props: IProps): React.ReactElement {
const faction = props.faction; const faction = props.faction;
const [purchasingAugs, setPurchasingAugs] = useState(props.augPage);
if (player && !player.factions.includes(faction.name)) { if (player && !player.factions.includes(faction.name)) {
return <> return (
<Typography variant="h4" color="primary"> <>
You have not joined {faction.name} yet! <Typography variant="h4" color="primary">
</Typography> You have not joined {faction.name} yet!
<Button onClick={() => router.toFactions()}>Back to Factions</Button> </Typography>
</> <Button onClick={() => router.toFactions()}>Back to Factions</Button>
</>
);
} }
return purchasingAugs ? ( return purchasingAugs ? (