1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

fix registerOnboarding method to correctly access completedOnboarding state value (#13723)

This commit is contained in:
Alex Donesky 2022-02-22 18:59:26 -06:00 committed by GitHub
parent f5e86d0351
commit 858c5c1201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ export default class OnboardingController {
* @param {string} tabId - The id of the tab registering
*/
registerOnboarding = async (location, tabId) => {
if (this.completedOnboarding) {
if (this.store.getState().completedOnboarding) {
log.debug('Ignoring registerOnboarding; user already onboarded');
return;
}