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 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 cookieProfileId = jettIdData == null ? void 0 : jettIdData.ProfileId;
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: cookieProfileId, EntityName: jettIdData.EntityName }] : [];
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 cookieProfileId = jettIdData == null ? void 0 : jettIdData.ProfileId;
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: cookieProfileId, EntityName: jettIdData.EntityName }] : [];
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jett.admin.npmpackage",
3
- "version": "2.0.32",
3
+ "version": "2.0.33",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "exports": {