Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function mapDispatchToProps(dispatch) {
const profileActions = actions.profile;
const basicInfoActions= actions.basicInfo;
const languageActions= actions.language;
console.log("actions", actions);
console.log("profileActions", profileActions);
console.log("basicInfoActions", basicInfoActions);
const loadHeaderData = ({ handle, tokenV3 }) => {
dispatch(profileActions.loadProfile(handle));
dispatch(profileActions.getAchievementsInit());
dispatch(actions.challenge.getActiveChallengesCountInit());
dispatch(profileActions.getAchievementsDone(handle));
dispatch(actions.challenge.getActiveChallengesCountDone(handle, tokenV3));
};
const loadTabData = ({
handle,
profile,