mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-02-18 10:53:43 +01:00
I made a mistake but caught it.
This commit is contained in:
@ -94,15 +94,8 @@ function ProductComponent(props: IProductProps): React.ReactElement {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function openMaterialMarketTaPopup(): void {
|
// Market TA button
|
||||||
const popupId = "cmpy-mgmt-export-popup";
|
const marketTaButtonOnClick = eventHandler.createProductMarketTaPopup.bind(eventHandler, product, division);
|
||||||
createPopup(popupId, MaterialMarketTaPopup, {
|
|
||||||
mat: product,
|
|
||||||
industry: division,
|
|
||||||
corp: props.corp,
|
|
||||||
popupId: popupId,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Unfinished Product
|
// Unfinished Product
|
||||||
if (!product.fin) {
|
if (!product.fin) {
|
||||||
@ -125,7 +118,7 @@ function ProductComponent(props: IProductProps): React.ReactElement {
|
|||||||
</button>
|
</button>
|
||||||
{
|
{
|
||||||
division.hasResearch("Market-TA.I") &&
|
division.hasResearch("Market-TA.I") &&
|
||||||
<button className={"std-button"} onClick={openMaterialMarketTaPopup}>
|
<button className={"std-button"} onClick={marketTaButtonOnClick}>
|
||||||
Market-TA
|
Market-TA
|
||||||
</button>
|
</button>
|
||||||
}
|
}
|
||||||
@ -205,7 +198,7 @@ function ProductComponent(props: IProductProps): React.ReactElement {
|
|||||||
</button>
|
</button>
|
||||||
{
|
{
|
||||||
division.hasResearch("Market-TA.I") &&
|
division.hasResearch("Market-TA.I") &&
|
||||||
<button className={"std-button"} onClick={openMaterialMarketTaPopup}>
|
<button className={"std-button"} onClick={marketTaButtonOnClick}>
|
||||||
Market-TA
|
Market-TA
|
||||||
</button>
|
</button>
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user