Skip to content

Commit

Permalink
Toast msg for payment verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jun 3, 2024
1 parent bcbceee commit f6205cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/(pages)/patient/components/BookAppointment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ async function processPayment(amount: string, name: string, email: string) {
headers: { "Content-Type": "application/json" },
});
const res = await result.json();
if (res.isOk) return true;
if (res.isOk) toast.success(res.message);
else {
toast.error(res.message);
}
Expand Down

0 comments on commit f6205cd

Please sign in to comment.