Merge pull request #1635 from Saynt-Garmo/dev

Going Public Exploit Fix.
This commit is contained in:
hydroflame 2021-10-29 17:18:20 -04:00 committed by GitHub
commit f7ca39714e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,8 +70,9 @@ export function GoPublicModal(props: IProps): React.ReactElement {
type="number"
placeholder="Shares to issue"
onKeyDown={onKeyDown}
/>
<Button sx={{ mx: 1 }} onClick={goPublic}>
<Button disabled={shares < 0||shares>corp.numShares} sx={{ mx: 1 }} onClick={goPublic}>
Go Public
</Button>
</Box>