Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This project is the UI for the Forever Cloud App Exchange

In the project directory, you can run:

### `npm start`
### `npm run start:dev`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
Expand Down
1 change: 0 additions & 1 deletion src/app/route/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function Routes() {
const state = useSelector(state => ({ id: state.auth.userId, userList: state.auth.userList }))
const dispatch = useDispatch();
let location = useLocation();
console.log({ routes: location.search })
useEffect(() => {
dispatch(setRoleName(location.search?.split("=")[1]));
}, []);
Expand Down
1 change: 0 additions & 1 deletion src/redux/actions/authenticationActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export const setAgentAccess = payload => {
}

export const currentUser = (props) => {
console.log(props)
return async (dispatch, getState) => {
try {
let response
Expand Down
14 changes: 7 additions & 7 deletions src/redux/reducers/authenticationReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,16 @@ const authenticationReducer = (state = defaultState, action) => {
}
})
.filter(Boolean);
const removeDuplicates = Array.from(
new Set(listOfRoles.map((a) => a.contactId))
).map((id) => {
return listOfRoles.find((a) => a.contactId === id);
});
//commenting, this seems unnecessary
// const removeDuplicates = Array.from(
// new Set(listOfRoles.map((a) => a.contactId))
// ).map((id) => {
// return listOfRoles.find((a) => a.contactId === id);
// });
return {
...state,
franchiseList: [
...removeDuplicates,
...listOfRoles,
{
contactId: state.userData.contact_id,
profileId: state.userData.profile_id,
Expand All @@ -105,7 +106,6 @@ const authenticationReducer = (state = defaultState, action) => {
};
case SET_PROFILE_ID:
const profileId = action.profileId;
console.log({ profileId: profileId })
const newUserId = profileId?.split("//")?.pop()?.split(".")?.shift();
return {
...state,
Expand Down
Loading