Skip to content

Commit

Permalink
fetch usd token prices first
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigoncalves committed Apr 2, 2024
1 parent c34c4aa commit 8e9cc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subscriptions/onSocketChangeEmitted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ export const onSocketChangeEmitted =
const deserializedTransactions = combinedTransactions.map(tx =>
activityDeserializer(tx, prices, chainId),
)
dispatch(setUsdPrices(prices))
dispatch(fetchBitcoinTransactions({}))
dispatch(addNewTransactions(deserializedTransactions))
dispatch(addOrUpdateBalances(tokens))
dispatch(setUsdPrices(prices))
break
default:
throw new Error(`${type} not implemented`)
Expand Down

0 comments on commit 8e9cc9a

Please sign in to comment.