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:
parent
f5e86d0351
commit
858c5c1201
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user