This commit is contained in:
everythingonblack
2025-05-05 09:22:09 +07:00
parent c59e3fc377
commit 70433dc6c6
6 changed files with 11 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ const CreateCouponPage = () => {
let encodedCouponCode = encodeURIComponent(encryptedCouponCode);
// Construct the URL with the encoded coupon code as a query parameter
const urlWithCoupon = `https://test.coupon.kedaimaster.com/coupon?c=${encodedCouponCode}`;
const urlWithCoupon = `https://coupon.kedaimaster.com/coupon?c=${encodedCouponCode}`;
// Optionally, set the URL to use with the coupon
setCouponUrl(urlWithCoupon);

View File

@@ -444,7 +444,6 @@ const App = ({ forCafe = true, cafeId = -1,
// Add a 2-second delay before proceeding
await delay(2000);
handleClose();
setModalStatus(null); // Reset status
window.location.reload(); // Reload the page
return;
@@ -457,7 +456,6 @@ const App = ({ forCafe = true, cafeId = -1,
// Add a 2-second delay before proceeding
await delay(2000);
handleClose();
setModalStatus(null); // Reset status
window.location.reload(); // Reload the page
}