We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 303b2a0 + cc57ac9 commit 131826dCopy full SHA for 131826d
src/actions/usersAction.js
@@ -216,7 +216,7 @@ export const activateDeactivateToggler = () => async (dispatch) => {
216
const res = await axios.patch(`${BASE_URL}/user/deactivate/toggler`)
217
if (res.status === 200) {
218
console.log('Deactivation toggler', res.data);
219
- dispatch(getProfile());
+ dispatch(getProfile(userId));
220
}
221
} catch (error) {
222
dispatch(errorHandler(error))
0 commit comments