I made a mistake but caught it.

This commit is contained in:
Olivier Gagnon
2021-08-30 03:18:12 -04:00
parent a72d1aa99f
commit 3ba04220e1

View File

@ -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>
} }