diff --git a/frontend/src/app/components/blocks-list/blocks-list.component.ts b/frontend/src/app/components/blocks-list/blocks-list.component.ts index 07b80a562..c565e9e30 100644 --- a/frontend/src/app/components/blocks-list/blocks-list.component.ts +++ b/frontend/src/app/components/blocks-list/blocks-list.component.ts @@ -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; diff --git a/frontend/src/app/components/svg-images/svg-images.component.html b/frontend/src/app/components/svg-images/svg-images.component.html index e64d7ecc9..56762397f 100644 --- a/frontend/src/app/components/svg-images/svg-images.component.html +++ b/frontend/src/app/components/svg-images/svg-images.component.html @@ -15,10 +15,10 @@ - + - + diff --git a/frontend/src/app/components/svg-images/svg-images.component.ts b/frontend/src/app/components/svg-images/svg-images.component.ts index ee2de825f..287243202 100644 --- a/frontend/src/app/components/svg-images/svg-images.component.ts +++ b/frontend/src/app/components/svg-images/svg-images.component.ts @@ -6,6 +6,7 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; changeDetection: ChangeDetectionStrategy.OnPush, }) export class SvgImagesComponent { + randomId = Math.floor(Math.random() * 10000); @Input() name: string; @Input() class: string; @Input() style: string;