Merge pull request #4146 from LJNeon/office-size-fix

CORPORATION: Don't show repeat office size upgrade button
This commit is contained in:
hydroflame 2022-09-23 16:20:48 -03:00 committed by GitHub
commit 69eda4340e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -100,14 +100,16 @@ export function UpgradeOfficeSizeModal(props: IProps): React.ReactElement {
cost={upgradeCost15}
size={CorporationConstants.OfficeInitialSize * 5}
/>
<UpgradeSizeButton
onClose={props.onClose}
rerender={props.rerender}
office={props.office}
corp={corp}
cost={upgradeCostMax}
size={maxNum * CorporationConstants.OfficeInitialSize}
/>
{maxNum !== 1 && maxNum !== 5 && (
<UpgradeSizeButton
onClose={props.onClose}
rerender={props.rerender}
office={props.office}
corp={corp}
cost={upgradeCostMax}
size={maxNum * CorporationConstants.OfficeInitialSize}
/>
)}
</Box>
</Modal>
);