From 4bf167d3e15cb45d606e6a4d53122c3de6584d5b Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Thu, 20 Jan 2022 15:57:53 +0100 Subject: [PATCH] fixed arrow not pointing to genesis block --- .../blockchain-blocks/blockchain-blocks.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts index 665822bd5..6c2babd5a 100644 --- a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts +++ b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.ts @@ -97,7 +97,7 @@ export class BlockchainBlocksComponent implements OnInit, OnDestroy { this.markBlockSubscription = this.stateService.markBlock$ .subscribe((state) => { this.markHeight = undefined; - if (state.blockHeight) { + if (state.blockHeight !== undefined) { this.markHeight = state.blockHeight; } this.moveArrowToPosition(false); @@ -114,7 +114,7 @@ export class BlockchainBlocksComponent implements OnInit, OnDestroy { } moveArrowToPosition(animate: boolean, newBlockFromLeft = false) { - if (!this.markHeight) { + if (this.markHeight === undefined) { this.arrowVisible = false; return; }