Avoid briefly displaying wrong accelerated fee rate on tx load

This commit is contained in:
natsoni 2024-07-11 20:38:38 +09:00
parent f24223ca06
commit 17720b98c1
No known key found for this signature in database
GPG Key ID: C65917583181743B

View File

@ -640,7 +640,11 @@
<td>
<div class="effective-fee-container">
@if (accelerationInfo?.acceleratedFeeRate && (!tx.effectiveFeePerVsize || accelerationInfo.acceleratedFeeRate >= tx.effectiveFeePerVsize || tx.acceleration)) {
<app-fee-rate [fee]="accelerationInfo.acceleratedFeeRate"></app-fee-rate>
@if (!tx.effectiveFeePerVsize) { <!-- Avoid briefly displaying a wrong accelerated fee rate while loading -->
<span class="skeleton-loader"></span>
} @else {
<app-fee-rate [fee]="accelerationInfo.acceleratedFeeRate"></app-fee-rate>
}
} @else {
<app-fee-rate [fee]="tx.effectiveFeePerVsize"></app-fee-rate>
}