Skip to content

Commit

Permalink
fix: magic recovery code flow getting stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove authored and kyranjamie committed Mar 3, 2020
1 parent f20d750 commit 500fdeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/app/src/components/onboarding/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useEffect } from 'react';
import { ChooseAccount, Create, SaveKey, SecretKey, SignIn, Username } from './screens';
import { DecryptRecoveryCode } from './screens/decrypt-recovery-code';
import { ChooseAccount, Create, SaveKey, SecretKey, SignIn, Username, DecryptRecoveryCode } from './screens';
import { doSaveAuthRequest } from '@store/onboarding/actions';
import { useDispatch, useSelector } from 'react-redux';
import { AppState } from '@store';
Expand Down Expand Up @@ -85,7 +84,7 @@ const RenderScreen = ({ ...rest }) => {
return <ChooseScreen />;

case ScreenName.RECOVERY_CODE:
return <DecryptRecoveryCode next={() => doChangeScreen(ScreenName.CHOOSE_ACCOUNT)} />;
return <DecryptRecoveryCode next={() => dispatch(doChangeScreen(ScreenName.CHOOSE_ACCOUNT))} />;

case ScreenName.REGISTRY_ERROR:
return <UsernameRegistryError />;
Expand Down
1 change: 1 addition & 0 deletions packages/app/src/components/onboarding/screens/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './create';
export * from './secret-key';
export * from './save-key';
export * from './username';
export * from './decrypt-recovery-code';

0 comments on commit 500fdeb

Please sign in to comment.