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,6 +100,7 @@ export function UpgradeOfficeSizeModal(props: IProps): React.ReactElement {
cost={upgradeCost15} cost={upgradeCost15}
size={CorporationConstants.OfficeInitialSize * 5} size={CorporationConstants.OfficeInitialSize * 5}
/> />
{maxNum !== 1 && maxNum !== 5 && (
<UpgradeSizeButton <UpgradeSizeButton
onClose={props.onClose} onClose={props.onClose}
rerender={props.rerender} rerender={props.rerender}
@ -108,6 +109,7 @@ export function UpgradeOfficeSizeModal(props: IProps): React.ReactElement {
cost={upgradeCostMax} cost={upgradeCostMax}
size={maxNum * CorporationConstants.OfficeInitialSize} size={maxNum * CorporationConstants.OfficeInitialSize}
/> />
)}
</Box> </Box>
</Modal> </Modal>
); );