File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/kit/src/views/Prime/components/PrimeLoginEmailDialogV2 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { ETranslations } from '@onekeyhq/shared/src/locale';
88import appStorage from '@onekeyhq/shared/src/storage/appStorage' ;
99import { EAppSyncStorageKeys } from '@onekeyhq/shared/src/storage/syncStorageKeys' ;
1010import stringUtils from '@onekeyhq/shared/src/utils/stringUtils' ;
11+ import timerUtils from '@onekeyhq/shared/src/utils/timerUtils' ;
1112
1213import { usePrimeAuthV2 } from '../../hooks/usePrimeAuthV2' ;
1314import { PrimeLoginEmailCodeDialogV2 } from '../PrimeLoginEmailCodeDialogV2' ;
@@ -68,6 +69,8 @@ export function PrimeLoginEmailDialogV2(props: {
6869 ) ;
6970
7071 try {
72+ onComplete ?.( ) ;
73+ await timerUtils . wait ( 550 ) ;
7174 const dialog = Dialog . show ( {
7275 renderContent : (
7376 < PrimeLoginEmailCodeDialogV2
@@ -90,7 +93,6 @@ export function PrimeLoginEmailDialogV2(props: {
9093 />
9194 ) ,
9295 } ) ;
93- onComplete ?.( ) ;
9496 } catch ( error ) {
9597 preventClose ?.( ) ;
9698 throw error ;
You can’t perform that action at this time.
0 commit comments