diff --git a/src/Constants.ts b/src/Constants.ts index 5f5a3c47d..3c31a8042 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -246,6 +246,7 @@ export const CONSTANTS: IMap = { 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. diff --git a/src/Corporation/ui/CorporationUIEventHandler.js b/src/Corporation/ui/CorporationUIEventHandler.js index 06ad8af6c..ea0d0b8ff 100644 --- a/src/Corporation/ui/CorporationUIEventHandler.js +++ b/src/Corporation/ui/CorporationUIEventHandler.js @@ -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; }