Optimize price API response size reduce the number of query to that API

This commit is contained in:
nymkappa
2023-02-23 13:13:20 +09:00
parent 1375982c51
commit a1905f624f
6 changed files with 132 additions and 50 deletions

View File

@@ -37,7 +37,7 @@ export class TxBowtieGraphTooltipComponent implements OnChanges {
ngOnChanges(changes): void {
if (changes.line?.currentValue) {
this.priceService.getBlockPrice$(changes.line?.currentValue.timestamp).pipe(
this.priceService.getBlockPrice$(changes.line?.currentValue.timestamp, true).pipe(
tap((price) => {
this.blockConversion = price;
})