FIx error handling logic in ord-data

This commit is contained in:
natsoni
2024-10-08 11:24:17 +09:00
parent 3b9601a82e
commit 65f080d526
3 changed files with 50 additions and 60 deletions

View File

@@ -1,5 +1,4 @@
import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { Runestone, Etching } from '../../shared/ord/rune.utils';
export interface Inscription {
@@ -20,7 +19,6 @@ export class OrdDataComponent implements OnChanges {
@Input() inscriptions: Inscription[];
@Input() runestone: Runestone;
@Input() runeInfo: { [id: string]: { etching: Etching; txid: string } };
@Input() error: HttpErrorResponse;
@Input() type: 'vin' | 'vout';
toNumber = (value: bigint): number => Number(value);