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 @@ -1041,17 +1041,14 @@ const onMessage: TOnMessage = async (key, data): Promise<void> => {
10411041 receivedTxids . push ( transaction . txid ) ;
10421042 }
10431043 }
1044- setTimeout ( ( ) => {
1045- updateActivityList ( ) ;
1046- } , 500 ) ;
1044+ refreshWallet ( { lightning : false } ) . then ( ) ;
1045+ setTimeout ( ( ) => updateActivityList , 500 ) ;
10471046 bitkitLedger ?. handleOnchainTx ( txMsg . transaction ) ;
10481047 break ;
10491048 }
10501049 case 'transactionSent' :
10511050 const txMsg = data as TTransactionMessage ;
1052- setTimeout ( ( ) => {
1053- updateActivityList ( ) ;
1054- } , 500 ) ;
1051+ setTimeout ( ( ) => updateActivityList , 500 ) ;
10551052 bitkitLedger ?. handleOnchainTx ( txMsg . transaction ) ;
10561053 break ;
10571054 case 'connectedToElectrum' :
@@ -1084,9 +1081,8 @@ const onMessage: TOnMessage = async (key, data): Promise<void> => {
10841081 } ) ;
10851082 break ;
10861083 case 'newBlock' :
1087- refreshWallet ( {
1088- onchain : false , // Beignet will handle this.
1089- } ) . then ( ) ;
1084+ // Beignet will handle this.
1085+ refreshWallet ( { onchain : false } ) . then ( ) ;
10901086 syncLedger ( ) ;
10911087 }
10921088} ;
You can’t perform that action at this time.
0 commit comments