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.
1 parent 303b2a0 commit cc57ac9Copy full SHA for cc57ac9
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