Skip to content

Commit 131826d

Browse files
authored
Merge pull request #576 from Rupeshiya/small_fix
small fix for user profile
2 parents 303b2a0 + cc57ac9 commit 131826d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/usersAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export const activateDeactivateToggler = () => async (dispatch) => {
216216
const res = await axios.patch(`${BASE_URL}/user/deactivate/toggler`)
217217
if (res.status === 200) {
218218
console.log('Deactivation toggler', res.data);
219-
dispatch(getProfile());
219+
dispatch(getProfile(userId));
220220
}
221221
} catch (error) {
222222
dispatch(errorHandler(error))

0 commit comments

Comments
 (0)