Liquid fee amount fix, network was read to early

This commit is contained in:
softsimon 2020-06-19 23:57:57 +07:00
parent 22813a09e8
commit ae9f57322b
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -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 {