Fix NFG appearing in installed list

This commit is contained in:
nickofolas 2022-04-08 09:43:09 -05:00
parent fbf9bc521f
commit 5dea27bc28

@ -19,7 +19,7 @@ import { AugmentationNames } from "../data/AugmentationNames";
export function InstalledAugmentations(): React.ReactElement {
const setRerender = useState(true)[1];
const player = use.Player();
const sourceAugs = player.augmentations.slice();
const sourceAugs = player.augmentations.slice().filter((aug) => aug.name !== AugmentationNames.NeuroFluxGovernor);
const [selectedAug, setSelectedAug] = useState(sourceAugs[0]);
@ -64,9 +64,7 @@ export function InstalledAugmentations(): React.ReactElement {
<Paper sx={{ display: "grid", gridTemplateColumns: "1fr 3fr" }}>
<Box>
<List sx={{ height: 400, overflowY: "scroll", borderRight: `1px solid ${Settings.theme.welllight}` }}>
{sourceAugs
.filter((aug) => aug.name !== AugmentationNames.NeuroFluxGovernor)
.map((k, i) => (
{sourceAugs.map((k, i) => (
<ListItemButton key={i + 1} onClick={() => setSelectedAug(k)} selected={selectedAug === k}>
<Typography>{k.name}</Typography>
</ListItemButton>