mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 09:14:26 +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$
|
||||
.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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user