mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-25 11:42:29 +01:00
Fix NFG appearing in installed list
This commit is contained in:
@ -19,7 +19,7 @@ import { AugmentationNames } from "../data/AugmentationNames";
|
|||||||
export function InstalledAugmentations(): React.ReactElement {
|
export function InstalledAugmentations(): React.ReactElement {
|
||||||
const setRerender = useState(true)[1];
|
const setRerender = useState(true)[1];
|
||||||
const player = use.Player();
|
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]);
|
const [selectedAug, setSelectedAug] = useState(sourceAugs[0]);
|
||||||
|
|
||||||
@ -64,13 +64,11 @@ export function InstalledAugmentations(): React.ReactElement {
|
|||||||
<Paper sx={{ display: "grid", gridTemplateColumns: "1fr 3fr" }}>
|
<Paper sx={{ display: "grid", gridTemplateColumns: "1fr 3fr" }}>
|
||||||
<Box>
|
<Box>
|
||||||
<List sx={{ height: 400, overflowY: "scroll", borderRight: `1px solid ${Settings.theme.welllight}` }}>
|
<List sx={{ height: 400, overflowY: "scroll", borderRight: `1px solid ${Settings.theme.welllight}` }}>
|
||||||
{sourceAugs
|
{sourceAugs.map((k, i) => (
|
||||||
.filter((aug) => aug.name !== AugmentationNames.NeuroFluxGovernor)
|
<ListItemButton key={i + 1} onClick={() => setSelectedAug(k)} selected={selectedAug === k}>
|
||||||
.map((k, i) => (
|
<Typography>{k.name}</Typography>
|
||||||
<ListItemButton key={i + 1} onClick={() => setSelectedAug(k)} selected={selectedAug === k}>
|
</ListItemButton>
|
||||||
<Typography>{k.name}</Typography>
|
))}
|
||||||
</ListItemButton>
|
|
||||||
))}
|
|
||||||
</List>
|
</List>
|
||||||
</Box>
|
</Box>
|
||||||
<Box sx={{ m: 1 }}>
|
<Box sx={{ m: 1 }}>
|
||||||
|
Reference in New Issue
Block a user