From f142150b3e44f67dadba250e5d3a3619b6384798 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 4 Jun 2018 16:04:37 +0200 Subject: [PATCH] Fix unexpected error --- client/coral-admin/src/containers/RejectUsernameDialog.js | 2 +- client/coral-framework/graphql/mutations.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,