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 {
const data = await useFetch("/api/user/registerCurse", {
const data = await useFetch("/api/user/registerCourse", {
method: "POST",
body: {
courseId: id,
@@ -286,9 +286,9 @@ const paymentHandler = async (id) => {
} else {
toast.success("ثبت نام انجام شد");
}
setTimeout(() => {
location.reload();
}, 1000);
// setTimeout(() => {
// location.reload();
// }, 1000);
} catch (error) {
toast.error("خطا در برقراری ارتباط");
}