mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-05-16 19:25:52 +00:00
Dont reload on purchase
This commit is contained in:
parent
173632deb8
commit
a531798529
@ -202,7 +202,6 @@ const Course = () => {
|
|||||||
const updated = await update();
|
const updated = await update();
|
||||||
console.log("session after update", updated);
|
console.log("session after update", updated);
|
||||||
showToast('success', 'Payment Success', 'You have successfully purchased this course');
|
showToast('success', 'Payment Success', 'You have successfully purchased this course');
|
||||||
router.reload();
|
|
||||||
} else {
|
} else {
|
||||||
showToast('error', 'Error', 'Failed to purchase course. Please try again.');
|
showToast('error', 'Error', 'Failed to purchase course. Please try again.');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user