Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update accountsChanged event when logged out #8

Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Sep 12, 2019

The accountsChanged event would previously return [undefined] upon logout (i.e. when selectedAddress was undefined).

Instead an empty array is now returned if the user is not logged in. This seems more semantically correct, and is more in-line with EIP-1193, which states that the event should emit an array of strings.

The `accountsChanged` event would previously return `[undefined]` upon
logout (i.e. when `selectedAddress` was undefined).

Instead an empty array is now returned if the user is not logged in.
This seems more semantically correct, and is more in-line with
EIP-1193, which states that the event should emit an array of strings.
@danfinlay danfinlay merged commit a68536a into MetaMask:master Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants