aboutsummaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-02-20 12:12:04 -0500
committerGitHub <noreply@github.com>2021-02-20 12:12:04 -0500
commitfbda685fe7eaa1acc5f80a4c748d4253da9e11e0 (patch)
tree2078369aa878324088e62b998de76e0a5e487819 /src/store
parentf4d8c3058ac601b0652f28e4ac5e3a6360b7bbd7 (diff)
parent8357cea9e510c97ba8816cb6850541509c5d764e (diff)
Merge pull request #253 from shravyaramesh/tma644-edit-suggested
Tma644 edit suggested
Diffstat (limited to 'src/store')
-rw-r--r--src/store/actions/user.ts4
-rw-r--r--src/store/reducers/userReducer.ts3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/store/actions/user.ts b/src/store/actions/user.ts
index ef134dc5..3511dcf3 100644
--- a/src/store/actions/user.ts
+++ b/src/store/actions/user.ts
@@ -172,7 +172,7 @@ export const uploadedSuggestedPeoplePhoto = (): ThunkAction<
try {
dispatch({
type: setSuggestedPeopleLinked.type,
- payload: {stage: 1},
+ payload: {suggested_people_linked: 1},
});
} catch (error) {
console.log(error);
@@ -191,7 +191,7 @@ export const suggestedPeopleAnimatedTutorialFinished = (
// update store first, assume request is successful
dispatch({
type: setSuggestedPeopleLinked.type,
- payload: {stage: 2},
+ payload: {suggested_people_linked: 2},
});
// need to tell the server that the stage is now 2
return await sendSuggestedPeopleLinked(userId, 2);
diff --git a/src/store/reducers/userReducer.ts b/src/store/reducers/userReducer.ts
index 5203fa3c..ea9294ec 100644
--- a/src/store/reducers/userReducer.ts
+++ b/src/store/reducers/userReducer.ts
@@ -47,7 +47,8 @@ const userDataSlice = createSlice({
},
setSuggestedPeopleLinked: (state, action) => {
- state.profile.suggested_people_linked = action.payload.stage;
+ state.profile.suggested_people_linked =
+ action.payload.suggested_people_linked;
},
setIsOnboardedUser: (state, action) => {