diff --git a/frontend/src/app/components/block/block.component.html b/frontend/src/app/components/block/block.component.html index 078b0bca5..ff43c10a2 100644 --- a/frontend/src/app/components/block/block.component.html +++ b/frontend/src/app/components/block/block.component.html @@ -40,7 +40,7 @@ Hash - {{ block.id | shortenString : 13 }} + {{ block.id | shortenString : 13 }} Median fee diff --git a/frontend/src/app/components/block/block.component.scss b/frontend/src/app/components/block/block.component.scss index 8fdae6df5..95f272274 100644 --- a/frontend/src/app/components/block/block.component.scss +++ b/frontend/src/app/components/block/block.component.scss @@ -11,6 +11,6 @@ @media (max-width: 767.98px) { .td-width { - width: 150px; + width: 140px; } } diff --git a/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts b/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts index d1fe7f845..1b1c7d993 100644 --- a/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts +++ b/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts @@ -58,7 +58,7 @@ export class MempoolBlocksComponent implements OnInit, OnDestroy { @HostListener('window:resize', ['$event']) onResize() { - if (this.mempoolBlocks.length) { + if (this.mempoolBlocks && this.mempoolBlocks.length) { this.mempoolBlocks = this.reduceMempoolBlocksToFitScreen(JSON.parse(JSON.stringify(this.mempoolBlocksFull))); } } diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index faf16284e..f135e441a 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -59,7 +59,6 @@ {{ tx.fee / (tx.weight / 4) | number : '1.1-1' }} sats/vB   - Unfairly cheap Optimal Overpaid {{ overpaidTimes }}x Overpaid {{ overpaidTimes }}x diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index a61ec1010..63ad02a76 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -148,9 +148,7 @@ export class TransactionComponent implements OnInit, OnDestroy { this.overpaidTimes = Math.round(feePervByte / this.medianFeeNeeded); - if (feePervByte < 0.9) { - this.feeRating = 0; - } else if (feePervByte <= this.medianFeeNeeded || this.overpaidTimes < 2) { + if (feePervByte <= this.medianFeeNeeded || this.overpaidTimes < 2) { this.feeRating = 1; } else { this.feeRating = 2;