Fix tx page crash when accelerationHistory errors

This commit is contained in:
softsimon 2024-06-23 15:38:53 +09:00
parent 9394572ec3
commit 06f60df4cf
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -294,7 +294,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
return this.servicesApiService.getAccelerationHistory$({ blockHeight });
}),
catchError(() => {
return of(null);
return of([]);
})
).subscribe((accelerationHistory) => {
for (const acceleration of accelerationHistory) {