diff options
-rw-r--r-- | src/services/UserProfileService.ts | 1 | ||||
-rw-r--r-- | src/store/actions/user.ts | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/services/UserProfileService.ts b/src/services/UserProfileService.ts index 9061dd5e..3bca66f3 100644 --- a/src/services/UserProfileService.ts +++ b/src/services/UserProfileService.ts @@ -336,7 +336,6 @@ export const editSPSwipeTutorial = async (user: UserType) => { body: request, }); if (response.status === 200) { - console.log('updatedbackend'); return true; } else { return false; diff --git a/src/store/actions/user.ts b/src/store/actions/user.ts index 98e1727b..50f810e4 100644 --- a/src/store/actions/user.ts +++ b/src/store/actions/user.ts @@ -158,12 +158,10 @@ export const updateSPSwipeTutorial = ( > => async (dispatch) => { try { const success = await editSPSwipeTutorial(user); - if (success) { - dispatch({ - type: spSwipeTutorialUpdated.type, - payload: {sp_swipe_tutorial: data}, - }); - } + dispatch({ + type: spSwipeTutorialUpdated.type, + payload: {sp_swipe_tutorial: data}, + }); return success; } catch (error) { console.log('Error while updating suggested people linked state: ', error); |