Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit dde1282

Browse files
authored
Merge pull request #450 from arpitchaudhari/dev
#441, #441 & Fixing data loss during checkout page loading.
2 parents d16d244 + 4720e5c commit dde1282

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

src/routes/CreateNewTeam/actions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const addTeamObject = (teamObject) => ({
4848

4949
export const addTeamObjects = (teamObject) => (dispatch, getState) => {
5050
dispatch(addTeamObject(teamObject));
51-
updateLocalStorage(getState().teamObject);
51+
updateLocalStorage(getState().searchedRoles);
5252
};
5353

5454
export const clearSearchedRoles = () => (dispatch, getState) => {

src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,14 @@ function NoMatchingProfilesResultCard({ role }) {
3535
if (role.jobTitle && role.jobTitle.length) {
3636
name = role.jobTitle;
3737
}
38-
dispatch(addSearchedRole({ searchId, name }));
38+
dispatch(
39+
addSearchedRole({
40+
searchId,
41+
name,
42+
rates: role.rates,
43+
imageUrl: role.imageUrl,
44+
})
45+
);
3946
}, [dispatch, role]);
4047

4148
return (

src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const CreateTassPayment = () => {
3030
imageUrl,
3131
name,
3232
rates: [rates],
33-
numberOfResources,
34-
durationWeeks,
33+
numberOfResources = 1,
34+
durationWeeks = 4,
3535
hoursPerWeek,
3636
} = role;
3737
let rate;
@@ -50,7 +50,7 @@ const CreateTassPayment = () => {
5050
durationWeeks,
5151
hoursPerWeek,
5252
});
53-
amount.push({ rate, numberOfResources, durationWeeks });
53+
amount.push({ rate, numberOfResources });
5454
});
5555
setValue(temp);
5656

0 commit comments

Comments
 (0)