Fix possible crash on invalid aug name

Fixes error from #591
This commit is contained in:
omuretsu 2023-06-12 01:13:25 -04:00
parent 969f3170f1
commit 01e7b2a6a9

@ -164,6 +164,7 @@ export function PurchasableAugmentation(props: IPurchasableAugProps): React.Reac
const [open, setOpen] = useState(false);
const aug = StaticAugmentations[props.augName];
if (!aug) return <></>;
const augCosts = aug.getCost();
const cost = props.parent.sleeveAugs ? aug.baseCost : augCosts.moneyCost;
const repCost = augCosts.repCost;