Skip to content

Commit

Permalink
fix: rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
brusherru committed Apr 11, 2024
1 parent 1105052 commit 47254e4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions desktop/TransactionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,13 @@ class TransactionManager extends AbstractManager {

const addReward = this.addReward(address);
this.retrieveRewards(address, 0)
.then((rewards) => {
this.unsubs[address].push(
this.glStateService.listenRewardsByCoinbase(address, addReward)
);
return this.replaceRewards(address, rewards);
})
.then((rewards) => this.replaceRewards(address, rewards))
.catch((err) => {
this.logger.error('Can not retrieve and store rewards', err);
});
this.unsubs[address].push(
this.glStateService.listenRewardsByCoinbase(address, addReward)
);
};

watchForAddress = (address: Bech32Address) => {
Expand Down

0 comments on commit 47254e4

Please sign in to comment.