mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
c167fbf903
When the token tracker is first constructed and the first balance update is triggered, we manually serialize the tracker state and call our update function. This is _in addition_ to the update event handler though, so the balances get updated twice. Similarly, we also catch any errors during this first update to handle them, but this is done via an event as well, so is redundant. These steps have been removed; updates and errors are now handled solely through events. We were able to drop a check from `updateBalances` as well to ensure the tracker is still running, as the event cannot be emitted unless it's running. |
||
---|---|---|
.. | ||
components | ||
css | ||
ducks | ||
helpers | ||
pages | ||
selectors | ||
store |