From e7d8ec8c63d81b239300122215cefcc71ea76af6 Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Thu, 18 Jun 2026 18:30:20 +0400 Subject: [PATCH] chek --- src/app/pages/cart/cart.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/pages/cart/cart.component.ts b/src/app/pages/cart/cart.component.ts index ab186aa..4098e70 100644 --- a/src/app/pages/cart/cart.component.ts +++ b/src/app/pages/cart/cart.component.ts @@ -274,13 +274,14 @@ export class CartComponent implements OnDestroy { if (paymentStatus === 'COMPLETED' || paymentStatus === 'APPROVED' || paymentStatus === 'PAID' || paymentCode === 'SUCCESS') { this.paymentStatus.set('success'); this.stopPolling(); - this.cartService.clearCart(); - - // Auto-submit purchase after 5 seconds + // Auto-submit purchase after 5 seconds if (this.closeTimeout) clearTimeout(this.closeTimeout); this.closeTimeout = setTimeout(() => { this.autoSubmitPurchase(); }, 5000); + this.cartService.clearCart(); + + } // Continue checking for 3 minutes regardless of other statuses },