mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-04-04 01:12:50 +02:00
Merge pull request #4010 from Risenafis/fix-create-corp
NETSCRIPT: Correct missing ! for boolean coercion in Corporation.createCorporation().
This commit is contained in:
@ -976,7 +976,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
|
|||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
(_corporationName: unknown, _selfFund: unknown = true): boolean => {
|
(_corporationName: unknown, _selfFund: unknown = true): boolean => {
|
||||||
const corporationName = helpers.string(ctx, "corporationName", _corporationName);
|
const corporationName = helpers.string(ctx, "corporationName", _corporationName);
|
||||||
const selfFund = !_selfFund;
|
const selfFund = !!_selfFund;
|
||||||
return createCorporation(corporationName, selfFund);
|
return createCorporation(corporationName, selfFund);
|
||||||
},
|
},
|
||||||
hasUnlockUpgrade:
|
hasUnlockUpgrade:
|
||||||
|
Reference in New Issue
Block a user