From 123d4b58fdca1c4b61f3713da6afccce3b4c85d9 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Mon, 4 Jul 2022 05:03:49 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index c1566cc97b..f175bc0de0 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)