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} cost={upgradeCost15}
size={CorporationConstants.OfficeInitialSize * 5} size={CorporationConstants.OfficeInitialSize * 5}
/> />
<UpgradeSizeButton {maxNum !== 1 && maxNum !== 5 && (
onClose={props.onClose} <UpgradeSizeButton
rerender={props.rerender} onClose={props.onClose}
office={props.office} rerender={props.rerender}
corp={corp} office={props.office}
cost={upgradeCostMax} corp={corp}
size={maxNum * CorporationConstants.OfficeInitialSize} cost={upgradeCostMax}
/> size={maxNum * CorporationConstants.OfficeInitialSize}
/>
)}
</Box> </Box>
</Modal> </Modal>
); );