Fix typo.

This commit is contained in:
Miguel Medeiros 2021-10-12 10:54:14 -03:00
parent 6f9762d50b
commit 1659be0d9f
No known key found for this signature in database
GPG key ID: 819EDEE4673F3EBB
2 changed files with 10 additions and 10 deletions

View file

@ -25,7 +25,7 @@
<ng-template [ngIf]="!address.electrum"> <ng-template [ngIf]="!address.electrum">
<tr> <tr>
<td i18n="address.total-received">Total received</td> <td i18n="address.total-received">Total received</td>
<td *ngIf="address.chain_stats.funded_txo_sum !== undefined; else confidentialTd"><app-amount [satoshis]="receieved" [noFiat]="true"></app-amount></td> <td *ngIf="address.chain_stats.funded_txo_sum !== undefined; else confidentialTd"><app-amount [satoshis]="received" [noFiat]="true"></app-amount></td>
</tr> </tr>
<tr> <tr>
<td i18n="address.total-sent">Total sent</td> <td i18n="address.total-sent">Total sent</td>
@ -34,7 +34,7 @@
</ng-template> </ng-template>
<tr> <tr>
<td i18n="address.balance">Balance</td> <td i18n="address.balance">Balance</td>
<td *ngIf="address.chain_stats.funded_txo_sum !== undefined; else confidentialTd"><app-amount [satoshis]="receieved - sent" [noFiat]="true"></app-amount> <span class="fiat"><app-fiat [value]="receieved - sent"></app-fiat></span></td> <td *ngIf="address.chain_stats.funded_txo_sum !== undefined; else confidentialTd"><app-amount [satoshis]="received - sent" [noFiat]="true"></app-amount> <span class="fiat"><app-fiat [value]="received - sent"></app-fiat></span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@ -85,7 +85,7 @@
</ng-template> </ng-template>
<ng-template [ngIf]="retryLoadmore"> <ng-template [ngIf]="retryLoadMore">
<br> <br>
<button type="button" class="btn btn-outline-info btn-sm" (click)="loadMore()"><fa-icon [icon]="['fas', 'redo-alt']" [fixedWidth]="true"></fa-icon></button> <button type="button" class="btn btn-outline-info btn-sm" (click)="loadMore()"><fa-icon [icon]="['fas', 'redo-alt']" [fixedWidth]="true"></fa-icon></button>
</ng-template> </ng-template>

View file

@ -24,7 +24,7 @@ export class AddressComponent implements OnInit, OnDestroy {
isLoadingAddress = true; isLoadingAddress = true;
transactions: Transaction[]; transactions: Transaction[];
isLoadingTransactions = true; isLoadingTransactions = true;
retryLoadmore = false; retryLoadMore = false;
error: any; error: any;
mainSubscription: Subscription; mainSubscription: Subscription;
addressLoadingStatus$: Observable<number>; addressLoadingStatus$: Observable<number>;
@ -33,7 +33,7 @@ export class AddressComponent implements OnInit, OnDestroy {
totalConfirmedTxCount = 0; totalConfirmedTxCount = 0;
loadedConfirmedTxCount = 0; loadedConfirmedTxCount = 0;
txCount = 0; txCount = 0;
receieved = 0; received = 0;
sent = 0; sent = 0;
private tempTransactions: Transaction[]; private tempTransactions: Transaction[];
@ -183,7 +183,7 @@ export class AddressComponent implements OnInit, OnDestroy {
}); });
transaction.vout.forEach((vout) => { transaction.vout.forEach((vout) => {
if (vout.scriptpubkey_address === this.address.address) { if (vout.scriptpubkey_address === this.address.address) {
this.receieved += vout.value; this.received += vout.value;
} }
}); });
}); });
@ -206,7 +206,7 @@ export class AddressComponent implements OnInit, OnDestroy {
return; return;
} }
this.isLoadingTransactions = true; this.isLoadingTransactions = true;
this.retryLoadmore = false; this.retryLoadMore = false;
this.electrsApiService.getAddressTransactionsFromHash$(this.address.address, this.lastTransactionTxId) this.electrsApiService.getAddressTransactionsFromHash$(this.address.address, this.lastTransactionTxId)
.subscribe((transactions: Transaction[]) => { .subscribe((transactions: Transaction[]) => {
this.lastTransactionTxId = transactions[transactions.length - 1].txid; this.lastTransactionTxId = transactions[transactions.length - 1].txid;
@ -216,12 +216,12 @@ export class AddressComponent implements OnInit, OnDestroy {
}, },
(error) => { (error) => {
this.isLoadingTransactions = false; this.isLoadingTransactions = false;
this.retryLoadmore = true; this.retryLoadMore = true;
}); });
} }
updateChainStats() { updateChainStats() {
this.receieved = this.address.chain_stats.funded_txo_sum + this.address.mempool_stats.funded_txo_sum; this.received = this.address.chain_stats.funded_txo_sum + this.address.mempool_stats.funded_txo_sum;
this.sent = this.address.chain_stats.spent_txo_sum + this.address.mempool_stats.spent_txo_sum; this.sent = this.address.chain_stats.spent_txo_sum + this.address.mempool_stats.spent_txo_sum;
this.txCount = this.address.chain_stats.tx_count + this.address.mempool_stats.tx_count; this.txCount = this.address.chain_stats.tx_count + this.address.mempool_stats.tx_count;
this.totalConfirmedTxCount = this.address.chain_stats.tx_count; this.totalConfirmedTxCount = this.address.chain_stats.tx_count;