jett.admin.npmpackage 2.0.32 → 2.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -966,11 +966,9 @@ var SwitchProfileSection = ({
|
|
|
966
966
|
const jettIdData = getJettIdCookieData();
|
|
967
967
|
const userName = (jettIdData == null ? void 0 : jettIdData.UserName) || "";
|
|
968
968
|
const userEmail = (jettIdData == null ? void 0 : jettIdData.UserEmail) || "";
|
|
969
|
-
const
|
|
969
|
+
const currentProfileId = jettIdData == null ? void 0 : jettIdData.ProfileId;
|
|
970
970
|
const allMarkets = getProfilesFromJettIdCookie(true);
|
|
971
|
-
const markets = allMarkets.length ? allMarkets : (jettIdData == null ? void 0 : jettIdData.EntityName) ? [{ ProfileId:
|
|
972
|
-
const tmcProfile = allMarkets.find((profile) => profile.Scope === "TMC");
|
|
973
|
-
const currentProfileId = tmcProfile ? tmcProfile.ProfileId : cookieProfileId;
|
|
971
|
+
const markets = allMarkets.length ? allMarkets : (jettIdData == null ? void 0 : jettIdData.EntityName) ? [{ ProfileId: currentProfileId, EntityName: jettIdData.EntityName }] : [];
|
|
974
972
|
const handleProfileSwitch = async (profile) => {
|
|
975
973
|
var _a, _b, _c;
|
|
976
974
|
if (switchingProfileId) return;
|
package/dist/index.mjs
CHANGED
|
@@ -932,11 +932,9 @@ var SwitchProfileSection = ({
|
|
|
932
932
|
const jettIdData = getJettIdCookieData();
|
|
933
933
|
const userName = (jettIdData == null ? void 0 : jettIdData.UserName) || "";
|
|
934
934
|
const userEmail = (jettIdData == null ? void 0 : jettIdData.UserEmail) || "";
|
|
935
|
-
const
|
|
935
|
+
const currentProfileId = jettIdData == null ? void 0 : jettIdData.ProfileId;
|
|
936
936
|
const allMarkets = getProfilesFromJettIdCookie(true);
|
|
937
|
-
const markets = allMarkets.length ? allMarkets : (jettIdData == null ? void 0 : jettIdData.EntityName) ? [{ ProfileId:
|
|
938
|
-
const tmcProfile = allMarkets.find((profile) => profile.Scope === "TMC");
|
|
939
|
-
const currentProfileId = tmcProfile ? tmcProfile.ProfileId : cookieProfileId;
|
|
937
|
+
const markets = allMarkets.length ? allMarkets : (jettIdData == null ? void 0 : jettIdData.EntityName) ? [{ ProfileId: currentProfileId, EntityName: jettIdData.EntityName }] : [];
|
|
940
938
|
const handleProfileSwitch = async (profile) => {
|
|
941
939
|
var _a, _b, _c;
|
|
942
940
|
if (switchingProfileId) return;
|