File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
examples/wallet/app/actions Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,8 @@ export function setAccountFromPrivateKey(
81
81
dispatch ( updateNodeSettings ( ) ) ,
82
82
dispatch ( updateAccountState ( ) )
83
83
] )
84
- . then ( ( ) => dispatch ( push ( routes . WALLET ) ) )
85
- . catch ( error => {
86
- console . error ( error ) ;
87
- dispatch ( push ( routes . WALLET ) ) ;
88
- } ) ;
84
+ . catch ( console . error )
85
+ . then ( ( ) => dispatch ( push ( routes . WALLET ) ) ) ;
89
86
} ) ;
90
87
} ;
91
88
}
@@ -115,11 +112,8 @@ const initializeKeysAndRedirect = (
115
112
dispatch ( updateNodeSettings ( ) ) ,
116
113
dispatch ( updateAccountState ( ) )
117
114
] )
118
- . then ( ( ) => dispatch ( push ( routes . WALLET ) ) )
119
- . catch ( error => {
120
- console . log ( error ) ;
121
- dispatch ( push ( routes . WALLET ) ) ;
122
- } ) ;
115
+ . catch ( console . error )
116
+ . then ( ( ) => dispatch ( push ( routes . WALLET ) ) ) ;
123
117
} ;
124
118
125
119
export function setAccountFromMnemonic (
You can’t perform that action at this time.
0 commit comments