From 48bdae4e781f0223e9b63e5e36e8a269ba3ffd7f Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sat, 29 Jun 2024 04:11:02 +0000 Subject: [PATCH] [accelerator] hide pizza tracker CTA when irrelevant --- frontend/src/app/components/tracker/tracker.component.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/tracker/tracker.component.ts b/frontend/src/app/components/tracker/tracker.component.ts index 234d89adc..00051350b 100644 --- a/frontend/src/app/components/tracker/tracker.component.ts +++ b/frontend/src/app/components/tracker/tracker.component.ts @@ -381,9 +381,11 @@ export class TrackerComponent implements OnInit, OnDestroy { this.trackerStage = 'replaced'; } - this.showAccelerationSummary = true; - if (txPosition.position?.block > 0 && this.tx.weight < 4000) { - this.accelerationEligible = true; + if (!this.mempoolPosition.accelerated) { + this.showAccelerationSummary = true; + if (txPosition.position?.block > 0 && this.tx.weight < 4000) { + this.accelerationEligible = true; + } } } } else {