This commit is contained in:
HAM!DREZA
2024-12-31 11:55:27 +03:30
parent 01c8e31ee1
commit bd0b3fe983
@@ -274,7 +274,7 @@ const paymentHandler = async (id) => {
}); });
} }
try { try {
const data = await useFetch("/api/user/registerCurse", { const data = await useFetch("/api/user/registerCourse", {
method: "POST", method: "POST",
body: { body: {
courseId: id, courseId: id,
@@ -286,9 +286,9 @@ const paymentHandler = async (id) => {
} else { } else {
toast.success("ثبت نام انجام شد"); toast.success("ثبت نام انجام شد");
} }
setTimeout(() => { // setTimeout(() => {
location.reload(); // location.reload();
}, 1000); // }, 1000);
} catch (error) { } catch (error) {
toast.error("خطا در برقراری ارتباط"); toast.error("خطا در برقراری ارتباط");
} }