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.modern.js
CHANGED
|
@@ -2824,6 +2824,8 @@ var useLogin = function useLogin() {
|
|
|
2824
2824
|
}));
|
|
2825
2825
|
|
|
2826
2826
|
if (data !== null && data !== void 0 && data.email && !roles.includes("Admin")) {
|
|
2827
|
+
var _data$roles;
|
|
2828
|
+
|
|
2827
2829
|
amplitude.getInstance().init(!isLocalhost ? INIT_AMPLITUDE_KEY_PROD : INIT_AMPLITUDE_KEY_STAGE, data.email, {
|
|
2828
2830
|
includeReferrer: false,
|
|
2829
2831
|
includeUtm: false
|
|
@@ -2832,15 +2834,17 @@ var useLogin = function useLogin() {
|
|
|
2832
2834
|
amplitude.getInstance().logEvent("general: session start", {
|
|
2833
2835
|
user_id: data.email,
|
|
2834
2836
|
domain: hostName,
|
|
2835
|
-
roles: data === null || data === void 0 ? void 0 : data.roles
|
|
2837
|
+
roles: data === null || data === void 0 ? void 0 : (_data$roles = data.roles) === null || _data$roles === void 0 ? void 0 : _data$roles.toString()
|
|
2836
2838
|
});
|
|
2837
2839
|
localStorage.setItem("USER_EMAIL", data.email);
|
|
2838
2840
|
|
|
2839
2841
|
if (isLoginFirst) {
|
|
2842
|
+
var _data$roles2;
|
|
2843
|
+
|
|
2840
2844
|
amplitude.getInstance().logEvent("general: first login", {
|
|
2841
2845
|
user_id: data.email,
|
|
2842
2846
|
domain: hostName,
|
|
2843
|
-
roles: data === null || data === void 0 ? void 0 : data.roles
|
|
2847
|
+
roles: data === null || data === void 0 ? void 0 : (_data$roles2 = data.roles) === null || _data$roles2 === void 0 ? void 0 : _data$roles2.toString()
|
|
2844
2848
|
});
|
|
2845
2849
|
}
|
|
2846
2850
|
}
|