Fixes CorporationInfo.state

Before:
CorporationInfo.state was returning "[Object object]".

After:
CorporationInfo.state returns an actual state like START, PURCHASE, PRODUCTION, SALE, EXPORT
This commit is contained in:
Anton Mironov 2021-12-24 17:32:51 +01:00 committed by GitHub
parent d99b03d12e
commit 23683d3482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -496,7 +496,7 @@ export function NetscriptCorporation(
shareSaleCooldown: corporation.shareSaleCooldown,
issuedShares: corporation.issuedShares,
sharePrice: corporation.sharePrice,
state: corporation.state + "",
state: corporation.state.getState(),
};
},
};