adjustments per review comments

* updated error message
* used correct price for bulk purchasing check
* moved onclose and rerenders outside try blocks
This commit is contained in:
phyzical
2022-02-19 16:05:55 +08:00
parent e9cea9dfd4
commit 6e21f16160
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ export function NetscriptCorporation(
bulkPurchase: function (adivisionName: any, acityName: any, amaterialName: any, aamt: any): void {
checkAccess("bulkPurchase", 7);
const divisionName = helper.string("bulkPurchase", "divisionName", adivisionName);
if (!hasResearched(getDivision(adivisionName), "Bulk Purchasing")) throw new Error(`You have not researched Bulk Purchase in ${adivisionName}`)
if (!hasResearched(getDivision(adivisionName), "Bulk Purchasing")) throw new Error(`You have not researched Bulk Purchasing in ${adivisionName}`)
const corporation = getCorporation();
const cityName = helper.string("bulkPurchase", "cityName", acityName);
const materialName = helper.string("bulkPurchase", "materialName", amaterialName);