-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
selectedAddress
when identities are updated (#415)
The `selectedAddress` state is now reset to the first identity if the current selected address is removed during an update. This is to ensure the `selectedAddress` is never set to an address that is not present in state. This was already being done manually after each invocation of `updateIdentities` where account removal was anticipated. For mobile this is mostly a non-functional change, except that now this update happens in a single state update rather than over the course of two successive updates.
- Loading branch information
Showing
3 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters