File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1033,17 +1033,14 @@ const onMessage: TOnMessage = async (key, data): Promise<void> => {
10331033 receivedTxids . push ( transaction . txid ) ;
10341034 }
10351035 }
1036- setTimeout ( ( ) => {
1037- updateActivityList ( ) ;
1038- } , 500 ) ;
1036+ refreshWallet ( { lightning : false } ) . then ( ) ;
1037+ setTimeout ( updateActivityList , 500 ) ;
10391038 bitkitLedger ?. handleOnchainTx ( txMsg . transaction ) ;
10401039 break ;
10411040 }
10421041 case 'transactionSent' :
10431042 const txMsg = data as TTransactionMessage ;
1044- setTimeout ( ( ) => {
1045- updateActivityList ( ) ;
1046- } , 500 ) ;
1043+ setTimeout ( updateActivityList , 500 ) ;
10471044 bitkitLedger ?. handleOnchainTx ( txMsg . transaction ) ;
10481045 break ;
10491046 case 'connectedToElectrum' :
@@ -1076,9 +1073,8 @@ const onMessage: TOnMessage = async (key, data): Promise<void> => {
10761073 } ) ;
10771074 break ;
10781075 case 'newBlock' :
1079- refreshWallet ( {
1080- onchain : false , // Beignet will handle this.
1081- } ) . then ( ) ;
1076+ // Beignet will handle this.
1077+ refreshWallet ( { onchain : false } ) . then ( ) ;
10821078 syncLedger ( ) ;
10831079 }
10841080} ;
You can’t perform that action at this time.
0 commit comments