mirror of
https://github.com/wassname/talk.git
synced 2026-08-18 12:30:39 +08:00
Fix unexpected error
This commit is contained in:
@@ -40,7 +40,7 @@ class RejectUsernameDialogContainer extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
await rejectUsername({ id: userId });
|
||||
await rejectUsername(userId);
|
||||
hideRejectUsernameDialog();
|
||||
};
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ export const withRejectUsername = withMutation(
|
||||
`,
|
||||
{
|
||||
props: ({ mutate }) => ({
|
||||
rejectUsername: ({ id }) => {
|
||||
rejectUsername: id => {
|
||||
return mutate({
|
||||
variables: {
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user