mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-04 20:37:36 +01:00
Merge pull request #3294 from nickofolas/fix/grafting-crash
[Fix] Grafting crash when all Augmentations owned
This commit is contained in:
commit
2b523b51f5
@ -64,6 +64,7 @@ export const GraftingRoot = (): React.ReactElement => {
|
|||||||
|
|
||||||
<Box sx={{ my: 3 }}>
|
<Box sx={{ my: 3 }}>
|
||||||
<Typography variant="h5">Graft Augmentations</Typography>
|
<Typography variant="h5">Graft Augmentations</Typography>
|
||||||
|
{getAvailableAugs(player).length > 0 ? (
|
||||||
<Paper sx={{ my: 1, width: "fit-content", display: "grid", gridTemplateColumns: "1fr 3fr" }}>
|
<Paper sx={{ my: 1, width: "fit-content", display: "grid", gridTemplateColumns: "1fr 3fr" }}>
|
||||||
<List sx={{ maxHeight: 400, overflowY: "scroll", borderRight: `1px solid ${Settings.theme.welllight}` }}>
|
<List sx={{ maxHeight: 400, overflowY: "scroll", borderRight: `1px solid ${Settings.theme.welllight}` }}>
|
||||||
{getAvailableAugs(player).map((k, i) => (
|
{getAvailableAugs(player).map((k, i) => (
|
||||||
@ -99,8 +100,8 @@ export const GraftingRoot = (): React.ReactElement => {
|
|||||||
}}
|
}}
|
||||||
confirmationText={
|
confirmationText={
|
||||||
<>
|
<>
|
||||||
Cancelling grafting will <b>not</b> save grafting progress, and the money you spend will <b>not</b> be
|
Cancelling grafting will <b>not</b> save grafting progress, and the money you spend will <b>not</b>{" "}
|
||||||
returned.
|
be returned.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
Additionally, grafting an Augmentation will increase the potency of the Entropy virus.
|
Additionally, grafting an Augmentation will increase the potency of the Entropy virus.
|
||||||
@ -132,6 +133,9 @@ export const GraftingRoot = (): React.ReactElement => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
) : (
|
||||||
|
<Typography>All Augmentations owned</Typography>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box sx={{ my: 3 }}>
|
<Box sx={{ my: 3 }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user