File tree 1 file changed +10
-22
lines changed
1 file changed +10
-22
lines changed Original file line number Diff line number Diff line change @@ -59,28 +59,16 @@ export default function Create({ navigation }: RootStackScreenProps<'Create'>) {
59
59
}
60
60
try {
61
61
setCreating ( true )
62
- if ( chain ) {
63
- const wallet = await WalletFactory . createWalletFromMnemonic ( chain , {
64
- networkType,
65
- accountId,
66
- mnemonic,
67
- } )
68
-
69
- dispatch ( {
70
- type : 'wallet/add' ,
71
- payload : { ...wallet , publicKey : undefined } ,
72
- } )
73
- } else {
74
- const nWallet = await WalletFactory . createWalletFromMnemonic ( chain , {
75
- networkType,
76
- accountId,
77
- mnemonic,
78
- } )
79
- dispatch ( {
80
- type : 'wallet/add' ,
81
- payload : nWallet ,
82
- } )
83
- }
62
+ const nWallet = await WalletFactory . createWalletFromMnemonic ( chain , {
63
+ networkType,
64
+ accountId,
65
+ mnemonic,
66
+ } )
67
+ dispatch ( {
68
+ type : 'wallet/add' ,
69
+ payload : nWallet ,
70
+ } )
71
+
84
72
setCreating ( false )
85
73
if ( pincode ) {
86
74
navigation . dispatch ( StackActions . popToTop ( ) )
You can’t perform that action at this time.
0 commit comments