Fix tx frontend issues after acceleration cancellation
This commit is contained in:
		
							parent
							
								
									969687ef39
								
							
						
					
					
						commit
						0310452dfb
					
				| @ -217,10 +217,10 @@ | |||||||
|     <tr> |     <tr> | ||||||
|       <td class="td-width" i18n="transaction.fee|Transaction fee">Fee</td> |       <td class="td-width" i18n="transaction.fee|Transaction fee">Fee</td> | ||||||
|       <td class="text-wrap">{{ tx.fee | number }} <span class="symbol" i18n="shared.sats">sats</span> |       <td class="text-wrap">{{ tx.fee | number }} <span class="symbol" i18n="shared.sats">sats</span> | ||||||
|         @if (accelerationInfo?.bidBoost ?? tx.feeDelta > 0) { |         @if (isAcceleration && accelerationInfo?.bidBoost ?? tx.feeDelta > 0) { | ||||||
|           <span class="oobFees" i18n-ngbTooltip="Acceleration Fees" ngbTooltip="Acceleration fees paid out-of-band"> +{{ accelerationInfo?.bidBoost ?? tx.feeDelta | number }} </span><span class="symbol" i18n="shared.sats">sats</span> |           <span class="oobFees" i18n-ngbTooltip="Acceleration Fees" ngbTooltip="Acceleration fees paid out-of-band"> +{{ accelerationInfo?.bidBoost ?? tx.feeDelta | number }} </span><span class="symbol" i18n="shared.sats">sats</span> | ||||||
|         } |         } | ||||||
|         <span class="fiat"><app-fiat [blockConversion]="tx.price" [value]="tx.fee + ((accelerationInfo?.bidBoost ?? tx.feeDelta) || 0)"></app-fiat></span> |         <span class="fiat"><app-fiat [blockConversion]="tx.price" [value]="tx.fee + (isAcceleration ? ((accelerationInfo?.bidBoost ?? tx.feeDelta) || 0) : 0)"></app-fiat></span> | ||||||
|       </td> |       </td> | ||||||
|     </tr> |     </tr> | ||||||
|   } @else { |   } @else { | ||||||
|  | |||||||
| @ -879,6 +879,9 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy { | |||||||
|       this.tx.acceleratedAt = cpfpInfo.acceleratedAt; |       this.tx.acceleratedAt = cpfpInfo.acceleratedAt; | ||||||
|       this.tx.feeDelta = cpfpInfo.feeDelta; |       this.tx.feeDelta = cpfpInfo.feeDelta; | ||||||
|       this.setIsAccelerated(firstCpfp); |       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) { |     if (this.notAcceleratedOnLoad === null) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user