Skip to content

Commit 23e1b04

Browse files
authored
✏️ Update toast message for successful invitation sending (#70)
1 parent 3efbbc3 commit 23e1b04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/Invitations/NewInvitation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
Text,
1010
} from "@chakra-ui/react"
1111
import { useMutation, useQueryClient } from "@tanstack/react-query"
12-
1312
import { type SubmitHandler, useForm } from "react-hook-form"
13+
1414
import {
1515
type ApiError,
1616
type InvitationCreate,
@@ -36,7 +36,7 @@ const NewInvitation = () => {
3636
mutationFn: (data: InvitationCreate) =>
3737
InvitationsService.createInvitation({ requestBody: data }),
3838
onSuccess: () => {
39-
showToast("Success!", "Invitation created successfully.", "success")
39+
showToast("Success!", "Invitation sent successfully.", "success")
4040
reset()
4141
},
4242
onError: (err: ApiError) => {

0 commit comments

Comments
 (0)