mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 00:17:32 +01:00
Fix Bug with smart supply leftovers
This commit is contained in:
parent
74019bc2be
commit
42d767b443
@ -20,7 +20,8 @@ function Leftover(props: ILeftoverProps): React.ReactElement {
|
||||
|
||||
function onChange(event: React.ChangeEvent<HTMLInputElement>): void {
|
||||
try {
|
||||
const material = props.warehouse.materials[props.matName];
|
||||
const matName = props.matName.replace(/ /g, "");
|
||||
const material = props.warehouse.materials[matName];
|
||||
SetSmartSupplyUseLeftovers(props.warehouse, material, event.target.checked);
|
||||
} catch (err) {
|
||||
dialogBoxCreate(err + "");
|
||||
|
Loading…
Reference in New Issue
Block a user