Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DDW-591] Fix delay on loading stake pool list after switching SMASH server #2447

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Changelog
- Enabled the "Loading Stake Pools" state anytime the pools are loading ([PR 2424](https://github.com/input-output-hk/daedalus/pull/2424))
- Implemented the syncing state for the Stake Pools settings screen ([PR 2418](https://github.com/input-output-hk/daedalus/pull/2418))

### Fixes

- Fixed delay on loading stake pool list after switching the SMASH server ([PR 2447](https://github.com/input-output-hk/daedalus/pull/2447))

### Chores

- Improved error message shown when trying to make a transaction from a wallet that contains only reward ([PR 2450](https://github.com/input-output-hk/daedalus/pull/2450))
Expand Down
2 changes: 2 additions & 0 deletions source/renderer/app/stores/StakingStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ export default class StakingStore extends Store {
// Retrieves the API update
this.smashServerLoading = true;
await this.updateSmashSettingsRequest.execute(smashServerUrl);
// Resets the Stake Pools list request
this.stakePoolsRequest.reset();
thedanheller marked this conversation as resolved.
Show resolved Hide resolved
// Refreshes the Stake Pools list
this.getStakePoolsData();
// Starts the SPs fetch tracker
Expand Down