From 0e122c15e22a54f737f9d97a4e492b2c7e74e51e Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 5 Jul 2024 13:53:03 +0000 Subject: [PATCH] [accelerator] handle estimate api fail --- .../accelerate-checkout/accelerate-checkout.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index b052f4dba..68ed74ad6 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -301,6 +301,11 @@ export class AccelerateCheckout implements OnInit, OnDestroy { this.estimate = undefined; this.quoteError = `cannot_accelerate_tx`; this.estimateSubscription.unsubscribe(); + if (this.step === 'summary') { + this.unavailable.emit(true); + } else { + this.accelerateError = 'cannot_accelerate_tx'; + } return of(null); }) ).subscribe();