Make sure blocks list rxjs observable triggers at least once

This commit is contained in:
nymkappa 2022-06-05 17:33:23 +02:00
parent 6b71536950
commit de6aae3337

View File

@ -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;