mirror of
https://github.com/mempool/mempool.git
synced 2024-12-29 01:34:28 +01:00
fixed arrow not pointing to genesis block
This commit is contained in:
parent
e59f610a75
commit
4bf167d3e1
@ -97,7 +97,7 @@ export class BlockchainBlocksComponent implements OnInit, OnDestroy {
|
|||||||
this.markBlockSubscription = this.stateService.markBlock$
|
this.markBlockSubscription = this.stateService.markBlock$
|
||||||
.subscribe((state) => {
|
.subscribe((state) => {
|
||||||
this.markHeight = undefined;
|
this.markHeight = undefined;
|
||||||
if (state.blockHeight) {
|
if (state.blockHeight !== undefined) {
|
||||||
this.markHeight = state.blockHeight;
|
this.markHeight = state.blockHeight;
|
||||||
}
|
}
|
||||||
this.moveArrowToPosition(false);
|
this.moveArrowToPosition(false);
|
||||||
@ -114,7 +114,7 @@ export class BlockchainBlocksComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
moveArrowToPosition(animate: boolean, newBlockFromLeft = false) {
|
moveArrowToPosition(animate: boolean, newBlockFromLeft = false) {
|
||||||
if (!this.markHeight) {
|
if (this.markHeight === undefined) {
|
||||||
this.arrowVisible = false;
|
this.arrowVisible = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user