File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -103,15 +103,16 @@ const CreateWalletSelectFiatComponent = (props: Props) => {
103103
104104 const handleSplit = useHandler ( async ( ) => {
105105 if ( splitSourceWalletId != null ) {
106- newWalletItems . forEach ( async item => {
106+ for ( const item of newWalletItems ) {
107107 try {
108108 const splitWalletId = await account . splitWalletInfo ( splitSourceWalletId , account . currencyConfig [ item . pluginId ] ?. currencyInfo . walletType )
109109 const splitWallet = await account . waitForCurrencyWallet ( splitWalletId )
110110 await splitWallet . renameWallet ( walletNames [ item . key ] )
111111 } catch ( error : unknown ) {
112112 showError ( error )
113+ break
113114 }
114- } )
115+ }
115116 navigation . navigate ( 'walletsTab' , { screen : 'walletList' } )
116117 }
117118 } )
You can’t perform that action at this time.
0 commit comments