conform getPrevouts and getCpfpLocalTx to new error handling standard

This commit is contained in:
Mononaut
2025-01-01 16:51:34 +00:00
parent e05a9a6dfa
commit 74fa3c7eb1
2 changed files with 17 additions and 13 deletions

View File

@@ -143,7 +143,8 @@ export class TransactionRawComponent implements OnInit, OnDestroy {
this.isLoadingPrevouts = false;
this.fetchCpfp = prevouts.some(prevout => prevout?.unconfirmed);
} catch (error) {
this.errorPrevouts = error?.error?.message || error?.message;
console.log(error);
this.errorPrevouts = error?.error?.error || error?.message;
this.isLoadingPrevouts = false;
}
}
@@ -171,7 +172,7 @@ export class TransactionRawComponent implements OnInit, OnDestroy {
}
this.isLoadingCpfpInfo = false;
} catch (error) {
this.errorCpfpInfo = error?.error?.message || error?.message;
this.errorCpfpInfo = error?.error?.error || error?.message;
this.isLoadingCpfpInfo = false;
}
}