Retrieve state after async action before updating state in _setSwapsQuoteRefreshTime (#11538)

feature/default_network_editable
Dan J Miller 3 years ago committed by GitHub
parent 9f4820ee98
commit ee925d0186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/controllers/swaps.js

@ -130,8 +130,10 @@ export default class SwapsController {
console.error('Request for swaps quote refresh time failed: ', e);
}
const { swapsState: latestSwapsState } = this.store.getState();
this.store.updateState({
swapsState: { ...swapsState, swapsQuoteRefreshTime },
swapsState: { ...latestSwapsState, swapsQuoteRefreshTime },
});
}

Loading…
Cancel
Save