Skip to content

Commit

Permalink
fix: historic fiat rates on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodonisko authored and tomasklim committed Oct 1, 2024
1 parent 65c2bca commit 36c867d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/suite/src/middlewares/wallet/walletMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const walletMiddleware =
api.dispatch(accountsActions.removeAccount(accounts));
}

// propagate action to reducers, this needs to happen before addTransaction is dispatched because it needs to have account in redux already
next(action);

if (accountsActions.createAccount.match(action)) {
// gather transactions from account.create action
const account = action.payload;
Expand All @@ -61,9 +64,6 @@ const walletMiddleware =
);
}

// propagate action to reducers
next(action);

if (isAnyOf(accountsActions.createAccount, accountsActions.updateAccount)(action)) {
api.dispatch(subscribeBlockchainThunk({ symbol: action.payload.symbol }));
}
Expand Down

0 comments on commit 36c867d

Please sign in to comment.