Skip to content

Commit

Permalink
[Wallet] Fix fetching verification state during onboarding (#5292)
Browse files Browse the repository at this point in the history
### Description

Fix fetching verification state during onboarding (see #5291 for more details)

### Tested

Android emulator

### Related issues

- Fixes #5291

### Backwards compatibility

Yes
  • Loading branch information
i1skn authored Oct 13, 2020
1 parent 3b3b843 commit 0004668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/mobile/src/import/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { getWordlist, storeMnemonic } from 'src/backup/utils'
import { CURRENCY_ENUM } from 'src/geth/consts'
import { refreshAllBalances } from 'src/home/actions'
import { setHasSeenVerificationNux } from 'src/identity/actions'
import { fetchVerificationState } from 'src/identity/verification'
import {
Actions,
ImportBackupPhraseAction,
Expand Down Expand Up @@ -85,7 +84,6 @@ export function* importBackupPhraseSaga({ phrase, useEmptyWallet }: ImportBackup
yield put(setHasSeenVerificationNux(true))
navigateHome()
} else {
yield call(fetchVerificationState)
navigate(Screens.VerificationEducationScreen)
}

Expand Down
6 changes: 2 additions & 4 deletions packages/mobile/src/verify/VerificationEducationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ function VerificationEducationScreen({ route, navigation }: Props) {
useFocusEffect(
// useCallback is needed here: https://bit.ly/2G0WKTJ
useCallback(() => {
if (!partOfOnboarding) {
dispatch(fetchVerificationState())
}
}, [partOfOnboarding])
dispatch(fetchVerificationState())
}, [])
)

const onPressStart = (withoutRevealing: boolean) => {
Expand Down

0 comments on commit 0004668

Please sign in to comment.