Skip to content

Commit

Permalink
fix(suite-common): fiat rates middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy committed Jan 13, 2025
1 parent 7fd8377 commit a861bcf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { fetchAllTransactionsForAccountThunk } from '../transactions/transaction

export const prepareFiatRatesMiddleware = createMiddlewareWithExtraDeps(
(action, { dispatch, extra, next, getState }) => {
next(action); //next must be at the beginning, othervise tickers are not going to be updated and fiat rates wont fetch (the user will have to wait for 1m timeout)
const {
actions: { setWalletSettingsLocalCurrency },
selectors: { selectLocalCurrency },
Expand Down Expand Up @@ -126,6 +127,6 @@ export const prepareFiatRatesMiddleware = createMiddlewareWithExtraDeps(
);
}

return next(action);
return action;
},
);

0 comments on commit a861bcf

Please sign in to comment.