diff --git a/client/coral-admin/src/containers/RejectUsernameDialog.js b/client/coral-admin/src/containers/RejectUsernameDialog.js index 90e329812..24d1cd2d3 100644 --- a/client/coral-admin/src/containers/RejectUsernameDialog.js +++ b/client/coral-admin/src/containers/RejectUsernameDialog.js @@ -40,7 +40,7 @@ class RejectUsernameDialogContainer extends Component { } } - await rejectUsername({ id: userId }); + await rejectUsername(userId); hideRejectUsernameDialog(); }; diff --git a/client/coral-framework/graphql/mutations.js b/client/coral-framework/graphql/mutations.js index b147fc354..722d8ea98 100644 --- a/client/coral-framework/graphql/mutations.js +++ b/client/coral-framework/graphql/mutations.js @@ -273,7 +273,7 @@ export const withRejectUsername = withMutation( `, { props: ({ mutate }) => ({ - rejectUsername: ({ id }) => { + rejectUsername: id => { return mutate({ variables: { id,