Can no longer export negative amount

This commit is contained in:
Olivier Gagnon 2021-05-17 18:04:10 -04:00
parent 6df824613e
commit b9c292f7cf
2 changed files with 2 additions and 1 deletions

@ -246,6 +246,7 @@ export const CONSTANTS: IMap<any> = {
Corp
* Self-fund with an invalid name no longer takes away 150b anyway.
* Can no longer export negative amount
Misc.
* ls now correctly lists all files.

@ -320,7 +320,7 @@ export class CorporationEventHandler {
return false;
}
if (temp == null || isNaN(temp)) {
if (temp == null || isNaN(temp) || temp < 0) {
dialogBoxCreate("Invalid amount entered for export");
return;
}