Fixed bug where company.name property didnt get properly updated for v0.41.2

This commit is contained in:
danielyxie 2018-11-19 02:21:21 -08:00
parent 074f8d9834
commit 1a47e81001

@ -127,7 +127,7 @@ function evaluateVersionCompatibility(ver) {
// The "companyName" property of all Companies is renamed to "name"
for (var companyName in Companies) {
const company = Companies[companyName];
if (company.name == null && company.companyName != null) {
if ((company.name == null || company.name === 0 || company.name === "") && company.companyName != null) {
console.log("Changed company name property to be compatible with v0.41.2");
company.name = company.companyName;
}