Skip to content

Commit

Permalink
Merge pull request #199 from beregovoy68/master
Browse files Browse the repository at this point in the history
Fixed transaction history table again
  • Loading branch information
beregovoy68 authored Apr 12, 2017
2 parents 3a151ab + a228ed4 commit 91cb694
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/js/history/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

function refreshTransactions() {
var txArray;
transactionLoadingService.loadTransactions(applicationContext.account.address)
transactionLoadingService.loadTransactions(applicationContext.account)
.then(function (transactions) {
txArray = transactions;

Expand Down
6 changes: 3 additions & 3 deletions src/js/shared/transaction.loading.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
var self = this;

// returns promise that loads and merges unconfirmed and confirmed transactions
this.loadTransactions = function (address) {
this.loadTransactions = function (account) {
var unconfirmed;
return apiService.transactions.unconfirmed()
.then(function (response) {
unconfirmed = response;

return apiService.transactions.list(address);
return apiService.transactions.list(account.address);
})
.then(function (response) {
var confirmed = response[0];

return self.mergeTransactions(address, unconfirmed, confirmed);
return self.mergeTransactions(account, unconfirmed, confirmed);
});
};

Expand Down
2 changes: 1 addition & 1 deletion src/js/wallet/list.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@

function refreshTransactions() {
var txArray;
transactionLoadingService.loadTransactions(applicationContext.account.address)
transactionLoadingService.loadTransactions(applicationContext.account)
.then(function (transactions) {
txArray = transactions;

Expand Down

0 comments on commit 91cb694

Please sign in to comment.