mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +01:00
Liquid fee amount fix, network was read to early
This commit is contained in:
parent
22813a09e8
commit
ae9f57322b
@ -41,6 +41,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.paginationMaxSize = window.matchMedia('(max-width: 700px)').matches ? 3 : 5;
|
this.paginationMaxSize = window.matchMedia('(max-width: 700px)').matches ? 3 : 5;
|
||||||
|
this.network = this.stateService.network;
|
||||||
|
|
||||||
this.route.paramMap
|
this.route.paramMap
|
||||||
.pipe(
|
.pipe(
|
||||||
@ -48,7 +49,6 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||||||
const blockHash: string = params.get('id') || '';
|
const blockHash: string = params.get('id') || '';
|
||||||
this.block = undefined;
|
this.block = undefined;
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
let isBlockHeight = false;
|
|
||||||
this.error = undefined;
|
this.error = undefined;
|
||||||
this.fees = undefined;
|
this.fees = undefined;
|
||||||
this.stateService.markBlock$.next({});
|
this.stateService.markBlock$.next({});
|
||||||
@ -57,6 +57,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||||||
this.blockHeight = history.state.data.blockHeight;
|
this.blockHeight = history.state.data.blockHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let isBlockHeight = false;
|
||||||
if (/^[0-9]+$/.test(blockHash)) {
|
if (/^[0-9]+$/.test(blockHash)) {
|
||||||
isBlockHeight = true;
|
isBlockHeight = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user