mario-core 2.9.99-beta → 2.9.101-beta
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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/dist/containers/Login/constant/type.d.ts +0 -5
- package/dist/containers/Login/views/ModelSelectRole.d.ts +0 -4
- package/dist/utils/amplitude.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -2826,6 +2826,8 @@ var useLogin = function useLogin() {
|
|
|
2826
2826
|
}));
|
|
2827
2827
|
|
|
2828
2828
|
if (data !== null && data !== void 0 && data.email && !roles.includes("Admin")) {
|
|
2829
|
+
var _data$roles;
|
|
2830
|
+
|
|
2829
2831
|
amplitude.getInstance().init(!isLocalhost ? INIT_AMPLITUDE_KEY_PROD : INIT_AMPLITUDE_KEY_STAGE, data.email, {
|
|
2830
2832
|
includeReferrer: false,
|
|
2831
2833
|
includeUtm: false
|
|
@@ -2834,15 +2836,17 @@ var useLogin = function useLogin() {
|
|
|
2834
2836
|
amplitude.getInstance().logEvent("general: session start", {
|
|
2835
2837
|
user_id: data.email,
|
|
2836
2838
|
domain: hostName,
|
|
2837
|
-
roles: data === null || data === void 0 ? void 0 : data.roles
|
|
2839
|
+
roles: data === null || data === void 0 ? void 0 : (_data$roles = data.roles) === null || _data$roles === void 0 ? void 0 : _data$roles.toString()
|
|
2838
2840
|
});
|
|
2839
2841
|
localStorage.setItem("USER_EMAIL", data.email);
|
|
2840
2842
|
|
|
2841
2843
|
if (isLoginFirst) {
|
|
2844
|
+
var _data$roles2;
|
|
2845
|
+
|
|
2842
2846
|
amplitude.getInstance().logEvent("general: first login", {
|
|
2843
2847
|
user_id: data.email,
|
|
2844
2848
|
domain: hostName,
|
|
2845
|
-
roles: data === null || data === void 0 ? void 0 : data.roles
|
|
2849
|
+
roles: data === null || data === void 0 ? void 0 : (_data$roles2 = data.roles) === null || _data$roles2 === void 0 ? void 0 : _data$roles2.toString()
|
|
2846
2850
|
});
|
|
2847
2851
|
}
|
|
2848
2852
|
}
|