diff --git a/src/components/Encounter/CreateEncounterForm.tsx b/src/components/Encounter/CreateEncounterForm.tsx index 2f1d5dbdc07..8bc81f74865 100644 --- a/src/components/Encounter/CreateEncounterForm.tsx +++ b/src/components/Encounter/CreateEncounterForm.tsx @@ -145,7 +145,7 @@ export default function CreateEncounterForm({ }, }); - const { mutate: createEncounter } = useMutation({ + const { mutate: createEncounter, isPending } = useMutation({ mutationFn: mutate(routes.encounter.create), onSuccess: (data: Encounter) => { toast.success("Encounter created successfully"); @@ -318,8 +318,8 @@ export default function CreateEncounterForm({ }} /> -