diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index c1566cc97b0b..f175bc0de01a 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -302081,11 +302081,12 @@ return this.rebuild$1(new A.CompanyEntity_coreCompany_closure()); }, isModuleEnabled$1(entityType) { - var t1, _this = this; + var t1, store, _this = this; if (entityType === B.EntityType_purchaseOrder) { t1 = $.$get$navigatorKey(); t1.toString; - if (A.cleanApiUrl(A._lateReadCheck(A.StoreProvider_of($.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), type$.legacy_AppState).__Store__state, "_state").authState.url) !== "https://staging.invoicing.co") + store = A.StoreProvider_of($.WidgetsBinding__instance.WidgetsBinding__buildOwner._globalKeyRegistry.$index(0, t1), type$.legacy_AppState); + if (A._lateReadCheck(store.__Store__state, "_state").get$isHosted() && A.cleanApiUrl(A._lateReadCheck(store.__Store__state, "_state").authState.url) !== "https://staging.invoicing.co") return false; } if ((entityType === B.EntityType_invoice || entityType === B.EntityType_payment) && (_this.enabledModules & 4096) === 0)