mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 14:40:38 +01:00
Make sure blocks list rxjs observable triggers at least once
This commit is contained in:
parent
412f118d22
commit
33e0859847
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ export class BlocksList implements OnInit {
|
|||
this.stateService.blocks$
|
||||
.pipe(
|
||||
switchMap((block) => {
|
||||
if (block[0].height <= this.lastBlockHeight) {
|
||||
if (block[0].height < this.lastBlockHeight) {
|
||||
return []; // Return an empty stream so the last pipe is not executed
|
||||
}
|
||||
this.lastBlockHeight = block[0].height;
|
||||
|
|
Loading…
Add table
Reference in a new issue