Skip to content

Commit

Permalink
✏️ Update toast message for successful invitation sending (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
alejsdev authored May 20, 2024
1 parent 3efbbc3 commit 23e1b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Invitations/NewInvitation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
Text,
} from "@chakra-ui/react"
import { useMutation, useQueryClient } from "@tanstack/react-query"

import { type SubmitHandler, useForm } from "react-hook-form"

import {
type ApiError,
type InvitationCreate,
Expand All @@ -36,7 +36,7 @@ const NewInvitation = () => {
mutationFn: (data: InvitationCreate) =>
InvitationsService.createInvitation({ requestBody: data }),
onSuccess: () => {
showToast("Success!", "Invitation created successfully.", "success")
showToast("Success!", "Invitation sent successfully.", "success")
reset()
},
onError: (err: ApiError) => {
Expand Down

0 comments on commit 23e1b04

Please sign in to comment.