mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Close modal, and don't apply coupon
This commit is contained in:
1 parent
007d5d8269
commit
89aa2973fa
1 file changed
+3
-1
@@ -20,13 +20,15 @@
|
||||
async function addCoupon() {
|
||||
try {
|
||||
const response = await sdk.forConsole.billing.getCoupon(coupon);
|
||||
couponData = response;
|
||||
|
||||
if (response.onlyNewOrgs && !isNewOrg) {
|
||||
show = false;
|
||||
addNotification({
|
||||
type: 'error',
|
||||
message: 'Coupon only valid for new organizations'
|
||||
});
|
||||
} else {
|
||||
couponData = response;
|
||||
dispatch('validation', couponData);
|
||||
coupon = null;
|
||||
show = false;
|
||||
|
||||
Reference in new issue
Block a user