@influenzanet/case-web-app-core 2.7.5-staging.1 → 2.7.5-staging.2
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/build/index.es.js +7 -12
- package/build/index.es.js.map +1 -1
- package/build/index.js +7 -12
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -23046,19 +23046,14 @@ var DeleteAccount = function (props) {
|
|
|
23046
23046
|
};
|
|
23047
23047
|
|
|
23048
23048
|
var SurveyList = function (props) {
|
|
23049
|
-
var _a =
|
|
23050
|
-
var _b = useTranslation([props.pageKey]), t = _b.t, i18n = _b.i18n;
|
|
23051
|
-
useSelector(function (state) { return state.user.currentUser; });
|
|
23049
|
+
var _a = useTranslation([props.pageKey]), t = _a.t, i18n = _a.i18n;
|
|
23052
23050
|
var avatars = useSelector(function (state) { return state.config.avatars; });
|
|
23053
23051
|
var history = useHistory();
|
|
23054
23052
|
var profiles = useSelector(function (state) { return state.user.currentUser.profiles; });
|
|
23055
23053
|
var activeSurveyInfos = useSelector(function (state) { return state.studies.activeSurveyInfos; });
|
|
23056
23054
|
useEffect(function () {
|
|
23057
23055
|
window.scrollTo(0, 0);
|
|
23058
|
-
|
|
23059
|
-
return;
|
|
23060
|
-
}
|
|
23061
|
-
}, [profiles]);
|
|
23056
|
+
});
|
|
23062
23057
|
var cardInfos = [];
|
|
23063
23058
|
var _loop_1 = function (assignedSurvey) {
|
|
23064
23059
|
var profile = profiles.find(function (p) { return p.id === assignedSurvey.profileId; });
|
|
@@ -23075,11 +23070,11 @@ var SurveyList = function (props) {
|
|
|
23075
23070
|
}
|
|
23076
23071
|
cardInfos.push(__assign(__assign({}, assignedSurvey), { profiles: [profile], surveyInfos: currentSurveyInfo }));
|
|
23077
23072
|
};
|
|
23078
|
-
for (var _i = 0,
|
|
23073
|
+
for (var _i = 0, _b = profiles
|
|
23079
23074
|
.map(function (profile) { return profile.assignedSurveys; })
|
|
23080
23075
|
.flat()
|
|
23081
|
-
.filter(function (s) { return s && s.profileId; }); _i <
|
|
23082
|
-
var assignedSurvey =
|
|
23076
|
+
.filter(function (s) { return s && s.profileId; }); _i < _b.length; _i++) {
|
|
23077
|
+
var assignedSurvey = _b[_i];
|
|
23083
23078
|
_loop_1(assignedSurvey);
|
|
23084
23079
|
}
|
|
23085
23080
|
var sortedCardInfos = cardInfos.sort(function (a, b) {
|
|
@@ -23104,8 +23099,7 @@ var SurveyList = function (props) {
|
|
|
23104
23099
|
info: t("".concat(props.itemKey, ".optionalSurveys.info")),
|
|
23105
23100
|
},
|
|
23106
23101
|
} }, void 0) }), void 0)); };
|
|
23107
|
-
|
|
23108
|
-
return (jsx(React__default$1.Fragment, { children: loading ? loadingContent() : renderContent() }, void 0));
|
|
23102
|
+
return jsx(React__default$1.Fragment, { children: renderContent() }, void 0);
|
|
23109
23103
|
};
|
|
23110
23104
|
|
|
23111
23105
|
var BasicRoutes = {
|
|
@@ -27444,6 +27438,7 @@ var ContactVerification = function (props) {
|
|
|
27444
27438
|
case 2:
|
|
27445
27439
|
response = _a.sent();
|
|
27446
27440
|
if (!(response.status === 200)) return [3 /*break*/, 8];
|
|
27441
|
+
dispatch(dialogActions.closeDialog());
|
|
27447
27442
|
dispatch(signupActions.contactVerified());
|
|
27448
27443
|
if (!hasToken) return [3 /*break*/, 7];
|
|
27449
27444
|
if (!(logedInUser !== response.data.account.accountId)) return [3 /*break*/, 3];
|