ok
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user