Skip to content

Commit

Permalink
Move isInitialized selector to appState slice
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Dec 2, 2024
1 parent 65261bb commit 098ecc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ui/ducks/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,10 @@ export function hideErrorInSettings() {
}

// Selectors

export function getIsInitialized(state: AppSliceState) {
return state.appState.isInitialized;
}
export function getQrCodeData(state: AppSliceState): {
type?: string | null;
values?: { address?: string | null };
Expand Down
3 changes: 0 additions & 3 deletions ui/ducks/metamask/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,6 @@ export function getIsNetworkBusyByChainId(state, chainId) {
export function getCompletedOnboarding(state) {
return state.metamask.completedOnboarding;
}
export function getIsInitialized(state) {
return state.metamask.isInitialized;
}

export function getIsUnlocked(state) {
return state.metamask.isUnlocked;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import {
} from '../../../helpers/constants/routes';
import {
getCompletedOnboarding,
getIsInitialized,
getIsUnlocked,
getSeedPhraseBackedUp,
} from '../../../ducks/metamask/metamask';
import { getIsInitialized } from '../../../ducks/app/app';

export default function OnboardingFlowSwitch() {
/* eslint-disable prefer-const */
Expand Down

0 comments on commit 098ecc7

Please sign in to comment.