feat(corp): don't show repeat office size upgrade button

This commit is contained in:
LJNeon 2022-09-23 11:38:58 -07:00
parent f43d232928
commit 4aed5da4ee
No known key found for this signature in database
GPG Key ID: 837C6B23D22030BE

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