Skip to content

Commit 256f5b4

Browse files
Merge pull request #125 from Yodata/master
merge from master
2 parents 0b9ebeb + a97b2ef commit 256f5b4

4 files changed

Lines changed: 8 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This project is the UI for the Forever Cloud App Exchange
44

55
In the project directory, you can run:
66

7-
### `npm start`
7+
### `npm run start:dev`
88

99
Runs the app in the development mode.<br />
1010
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

src/app/route/Routes.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ function Routes() {
1111
const state = useSelector(state => ({ id: state.auth.userId, userList: state.auth.userList }))
1212
const dispatch = useDispatch();
1313
let location = useLocation();
14-
console.log({ routes: location.search })
1514
useEffect(() => {
1615
dispatch(setRoleName(location.search?.split("=")[1]));
1716
}, []);

src/redux/actions/authenticationActions.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export const setAgentAccess = payload => {
5656
}
5757

5858
export const currentUser = (props) => {
59-
console.log(props)
6059
return async (dispatch, getState) => {
6160
try {
6261
let response

src/redux/reducers/authenticationReducer.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,16 @@ const authenticationReducer = (state = defaultState, action) => {
8585
}
8686
})
8787
.filter(Boolean);
88-
const removeDuplicates = Array.from(
89-
new Set(listOfRoles.map((a) => a.contactId))
90-
).map((id) => {
91-
return listOfRoles.find((a) => a.contactId === id);
92-
});
88+
//commenting, this seems unnecessary
89+
// const removeDuplicates = Array.from(
90+
// new Set(listOfRoles.map((a) => a.contactId))
91+
// ).map((id) => {
92+
// return listOfRoles.find((a) => a.contactId === id);
93+
// });
9394
return {
9495
...state,
9596
franchiseList: [
96-
...removeDuplicates,
97+
...listOfRoles,
9798
{
9899
contactId: state.userData.contact_id,
99100
profileId: state.userData.profile_id,
@@ -105,7 +106,6 @@ const authenticationReducer = (state = defaultState, action) => {
105106
};
106107
case SET_PROFILE_ID:
107108
const profileId = action.profileId;
108-
console.log({ profileId: profileId })
109109
const newUserId = profileId?.split("//")?.pop()?.split(".")?.shift();
110110
return {
111111
...state,

0 commit comments

Comments
 (0)