-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip state update upon failure (#8432)
Many of the "message manager" background methods return a full copy of the background state in their response; presumably to save us from making a full round-trip to update the UI `metamask` state after it changes. However, the action creators responsible for calling these methods were calling `updateMetamaskState` even when the background method failed. In effect, they were setting the UI `metamask` state to `undefined`. They have been updated to only set the UI `metamask` state if the background method succeeded.
- Loading branch information
Showing
2 changed files
with
11 additions
and
14 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