This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 3 files changed +12
-5
lines changed
components/NoMatchingProfilesResultCard
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const addTeamObject = (teamObject) => ({
48
48
49
49
export const addTeamObjects = ( teamObject ) => ( dispatch , getState ) => {
50
50
dispatch ( addTeamObject ( teamObject ) ) ;
51
- updateLocalStorage ( getState ( ) . teamObject ) ;
51
+ updateLocalStorage ( getState ( ) . searchedRoles ) ;
52
52
} ;
53
53
54
54
export const clearSearchedRoles = ( ) => ( dispatch , getState ) => {
Original file line number Diff line number Diff line change @@ -35,7 +35,14 @@ function NoMatchingProfilesResultCard({ role }) {
35
35
if ( role . jobTitle && role . jobTitle . length ) {
36
36
name = role . jobTitle ;
37
37
}
38
- dispatch ( addSearchedRole ( { searchId, name } ) ) ;
38
+ dispatch (
39
+ addSearchedRole ( {
40
+ searchId,
41
+ name,
42
+ rates : role . rates ,
43
+ imageUrl : role . imageUrl ,
44
+ } )
45
+ ) ;
39
46
} , [ dispatch , role ] ) ;
40
47
41
48
return (
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ const CreateTassPayment = () => {
30
30
imageUrl,
31
31
name,
32
32
rates : [ rates ] ,
33
- numberOfResources,
34
- durationWeeks,
33
+ numberOfResources = 1 ,
34
+ durationWeeks = 4 ,
35
35
hoursPerWeek,
36
36
} = role ;
37
37
let rate ;
@@ -50,7 +50,7 @@ const CreateTassPayment = () => {
50
50
durationWeeks,
51
51
hoursPerWeek,
52
52
} ) ;
53
- amount . push ( { rate, numberOfResources, durationWeeks } ) ;
53
+ amount . push ( { rate, numberOfResources } ) ;
54
54
} ) ;
55
55
setValue ( temp ) ;
56
56
You can’t perform that action at this time.
0 commit comments