diff --git a/src/Corporation/ui/IndustryOverview.tsx b/src/Corporation/ui/IndustryOverview.tsx index 970cbb66c..ce224e8fc 100644 --- a/src/Corporation/ui/IndustryOverview.tsx +++ b/src/Corporation/ui/IndustryOverview.tsx @@ -33,6 +33,11 @@ function MakeProductButton(): React.ReactElement { return Object.keys(division.products).length === 0; } + function onButtonClick() { + if (hasMaxProducts) return; + setMakeOpen(true); + } + let createProductButtonText = ""; switch (division.type) { case Industries.Food: @@ -78,7 +83,7 @@ function MakeProductButton(): React.ReactElement { ) } > -