Skip to content

Commit 73d6585

Browse files
committed
refactor: rename inviteToTeam mutation
1 parent 4535882 commit 73d6585

File tree

1 file changed

+2
-2
lines changed
  • packages/app/src/app/pages/Dashboard/Content/routes/TeamView/AddTeamMember

1 file changed

+2
-2
lines changed

packages/app/src/app/pages/Dashboard/Content/routes/TeamView/AddTeamMember/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const ErrorMessage = styled.div`
2020

2121
export const AddTeamMember: React.FC<IAddTeamMemberProps> = ({ teamId }) => {
2222
const { actions } = useOvermind();
23-
const [mutate, { loading, error }] = useMutation(INVITE_TO_TEAM);
23+
const [inviteToTeam, { loading, error }] = useMutation(INVITE_TO_TEAM);
2424
let input: HTMLInputElement = null;
2525

2626
const submit: React.FormEventHandler = e => {
@@ -44,7 +44,7 @@ export const AddTeamMember: React.FC<IAddTeamMemberProps> = ({ teamId }) => {
4444
variables.username = value;
4545
}
4646

47-
mutate({
47+
inviteToTeam({
4848
variables,
4949
}).then(() => {
5050
actions.notificationAdded({

0 commit comments

Comments
 (0)