Make sure blocks list rxjs observable triggers at least once
This commit is contained in:
parent
412f118d22
commit
33e0859847
@ -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…
x
Reference in New Issue
Block a user