mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +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 {
|
function onChange(event: React.ChangeEvent<HTMLInputElement>): void {
|
||||||
try {
|
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);
|
SetSmartSupplyUseLeftovers(props.warehouse, material, event.target.checked);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
dialogBoxCreate(err + "");
|
dialogBoxCreate(err + "");
|
||||||
|
Loading…
Reference in New Issue
Block a user