change: utxo_release before transaction_list

This commit is contained in:
Sean Yesmunt 2019-01-14 11:35:49 -05:00
parent 6953a29c2e
commit a22f828411
2 changed files with 12 additions and 8 deletions

4
dist/bundle.js vendored
View file

@ -4137,7 +4137,9 @@ function doFetchTransactions() {
type: ACTIONS.FETCH_TRANSACTIONS_STARTED
});
_lbry2.default.transaction_list().then(function (results) {
_lbry2.default.utxo_release().then(function () {
return _lbry2.default.transaction_list();
}).then(function (results) {
dispatch({
type: ACTIONS.FETCH_TRANSACTIONS_COMPLETED,
data: {

View file

@ -37,14 +37,16 @@ export function doFetchTransactions() {
type: ACTIONS.FETCH_TRANSACTIONS_STARTED,
});
Lbry.transaction_list().then((results) => {
dispatch({
type: ACTIONS.FETCH_TRANSACTIONS_COMPLETED,
data: {
transactions: results,
},
Lbry.utxo_release()
.then(() => Lbry.transaction_list())
.then((results) => {
dispatch({
type: ACTIONS.FETCH_TRANSACTIONS_COMPLETED,
data: {
transactions: results,
},
});
});
});
};
}