From ae9f57322bfbbcc3e568b3fc032c08fd4be18c7b Mon Sep 17 00:00:00 2001 From: softsimon Date: Fri, 19 Jun 2020 23:57:57 +0700 Subject: [PATCH] Liquid fee amount fix, network was read to early --- frontend/src/app/components/block/block.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index 60624e250..356e650af 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -41,6 +41,7 @@ export class BlockComponent implements OnInit, OnDestroy { ngOnInit() { this.paginationMaxSize = window.matchMedia('(max-width: 700px)').matches ? 3 : 5; + this.network = this.stateService.network; this.route.paramMap .pipe( @@ -48,7 +49,6 @@ export class BlockComponent implements OnInit, OnDestroy { const blockHash: string = params.get('id') || ''; this.block = undefined; this.page = 1; - let isBlockHeight = false; this.error = undefined; this.fees = undefined; this.stateService.markBlock$.next({}); @@ -57,6 +57,7 @@ export class BlockComponent implements OnInit, OnDestroy { this.blockHeight = history.state.data.blockHeight; } + let isBlockHeight = false; if (/^[0-9]+$/.test(blockHash)) { isBlockHeight = true; } else {