Skip to content

Commit

Permalink
Fix POC phone number not being checked correctly in event form
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Feb 23, 2025
1 parent 937d17b commit 3f03feb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/events/EventForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export default function EventForm({
// show error toast
triggerToast({
...res.error,
title: "Form Error",
severity: "error",
});

Expand Down Expand Up @@ -309,7 +310,7 @@ export default function EventForm({
uid: formData.poc,
phone: formData.poc_phone,
};
let phoneReturn = submitHandlers["phone"](phoneData);
let phoneReturn = await submitHandlers["phone"](phoneData);
if (!phoneReturn) {
setLoading(false);
return;
Expand Down

0 comments on commit 3f03feb

Please sign in to comment.