From 0310452dfbfd8a65ec7ce5c5a27847e644a5dc34 Mon Sep 17 00:00:00 2001 From: natsoni Date: Wed, 4 Dec 2024 13:24:58 +0100 Subject: [PATCH] Fix tx frontend issues after acceleration cancellation --- .../transaction-details/transaction-details.component.html | 4 ++-- .../src/app/components/transaction/transaction.component.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/transaction/transaction-details/transaction-details.component.html b/frontend/src/app/components/transaction/transaction-details/transaction-details.component.html index acadc8818..9bdf4066a 100644 --- a/frontend/src/app/components/transaction/transaction-details/transaction-details.component.html +++ b/frontend/src/app/components/transaction/transaction-details/transaction-details.component.html @@ -217,10 +217,10 @@ Fee {{ tx.fee | number }} sats - @if (accelerationInfo?.bidBoost ?? tx.feeDelta > 0) { + @if (isAcceleration && accelerationInfo?.bidBoost ?? tx.feeDelta > 0) { +{{ accelerationInfo?.bidBoost ?? tx.feeDelta | number }} sats } - + } @else { diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index f19a5bcbd..a1b48766a 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -879,6 +879,9 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy { this.tx.acceleratedAt = cpfpInfo.acceleratedAt; this.tx.feeDelta = cpfpInfo.feeDelta; this.setIsAccelerated(firstCpfp); + } else if (this.tx.acceleration) { // Acceleration was cancelled while on the tx page, reset acceleration state + this.tx.acceleration = false; + this.setIsAccelerated(firstCpfp); } if (this.notAcceleratedOnLoad === null) {