…. +Ensured the indexInfo is updated in synchrony with the indices map.
The indicesMap is indexed by addresses and not public keys in other parts of the code. This caused the update function to never populate the index info correctly for local accounts.
The call to allAccounts after the update of the map ensures that formatAccounts is called for the list of local accounts, which populates the right information.
This fix is necessary for the good behaviour of the pull request in UI, but should be useful by itself.
…. +Ensured the indexInfo is updated in synchrony with the indices map.
The indicesMap is indexed by addresses and not public keys in other parts of the code. This caused the update function to never populate the index info correctly for local accounts. The call to allAccounts after the update of the map ensures that formatAccounts is called for the list of local accounts, which populates the right information. This fix is necessary for the good behaviour of the pull request in UI, but should be useful by itself.