diff --git a/src/app/approve/approve.component.ts b/src/app/approve/approve.component.ts
index c2d6230..3d2102c 100644
--- a/src/app/approve/approve.component.ts
+++ b/src/app/approve/approve.component.ts
@@ -46,7 +46,7 @@ export class ApproveComponent implements OnInit {
transactionHex: any;
username: any;
transactionDescription: any;
- transactionDeSoSpent: string | boolean = false;
+ transactionSpent: string | boolean = false;
constructor(
private activatedRoute: ActivatedRoute,
@@ -61,9 +61,10 @@ export class ApproveComponent implements OnInit {
ngOnInit(): void {
this.activatedRoute.queryParams.subscribe(params => {
this.transactionHex = params.tx;
- this.backendApi.GetTransactionSpending(this.transactionHex).subscribe( res => {
- this.transactionDeSoSpent = res ? this.nanosToUnitString(res) : false;
- });
+
+ // TODO - for LBRY
+ this.transactionSpent = false;
+
const txBytes = new Buffer(this.transactionHex, 'hex');
this.transaction = Transaction.fromBytes(txBytes)[0];
this.publicKey = this.base58KeyCheck(this.transaction.publicKey);
diff --git a/src/app/backend-api.service.ts b/src/app/backend-api.service.ts
index 03803cd..652b66c 100644
--- a/src/app/backend-api.service.ts
+++ b/src/app/backend-api.service.ts
@@ -93,24 +93,4 @@ export class BackendAPIService {
return of(userProfiles);
}
}
-
- GetTransactionSpending(
- transactionHex: string
- ): Observable
{
- const req = this.httpClient.post(
- `${this.endpoint}/get-transaction-spending`,
- {
- TransactionHex: transactionHex,
- },
- );
- return req.pipe(
- map( res => {
- return res.TotalSpendingNanos as number;
- })
- ).pipe(
- catchError(() => {
- return of(0);
- })
- );
- }
}