From 5dea27bc2894b442e6dfacf1c4d79bdd19f506e6 Mon Sep 17 00:00:00 2001 From: nickofolas <60761231+nickofolas@users.noreply.github.com> Date: Fri, 8 Apr 2022 09:43:09 -0500 Subject: [PATCH] Fix NFG appearing in installed list --- src/Augmentation/ui/InstalledAugmentations.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Augmentation/ui/InstalledAugmentations.tsx b/src/Augmentation/ui/InstalledAugmentations.tsx index 58631cc7f..d200ebfa6 100644 --- a/src/Augmentation/ui/InstalledAugmentations.tsx +++ b/src/Augmentation/ui/InstalledAugmentations.tsx @@ -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,13 +64,11 @@ export function InstalledAugmentations(): React.ReactElement { - {sourceAugs - .filter((aug) => aug.name !== AugmentationNames.NeuroFluxGovernor) - .map((k, i) => ( - setSelectedAug(k)} selected={selectedAug === k}> - {k.name} - - ))} + {sourceAugs.map((k, i) => ( + setSelectedAug(k)} selected={selectedAug === k}> + {k.name} + + ))}