Skip to content

Commit

Permalink
[FIX] Ignore User action from user card (#18866)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc authored Sep 17, 2020
1 parent b468f4f commit 45774d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/channel/hooks/useUserInfoActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export const useUserInfoActions = (user = {}, rid) => {
const ignoreUser = useMethod('ignoreUser');
const ignoreUserAction = useMutableCallback(async () => {
try {
await ignoreUser({ rid, ignoredUser: uid, ignore: !isIgnored });
await ignoreUser({ rid, userId: uid, ignore: !isIgnored });
dispatchToastMessage({ type: 'success', message: t('User_has_been_unignored') });
} catch (error) {
dispatchToastMessage({ type: 'error', message: error });
Expand Down

0 comments on commit 45774d4

Please sign in to comment.