File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -536,7 +536,6 @@ export const subscribeToLightningPayments = ({
536536 EEventTypes . new_channel ,
537537 async ( res : TChannelUpdate ) => {
538538 await updateChannelsThunk ( ) ;
539- updateSlashPayConfig ( { selectedWallet, selectedNetwork } ) ;
540539
541540 const openChannels = getOpenChannels ( ) ;
542541 const closedChannels = getClosedChannels ( ) ;
@@ -553,10 +552,11 @@ export const subscribeToLightningPayments = ({
553552
554553 // Check if this is a CJIT Entry that needs to be added to the activity list.
555554 addCJitActivityItem ( res . channel_id ) . then ( ) ;
556- // Refresh to update balance
557- refreshLdk ( ) ;
558555 // We need to sync the ledger because TChannelUpdate doesn't have enough data
559556 syncLedger ( ) ;
557+ // Refresh to update balance
558+ await refreshLdk ( ) ;
559+ updateSlashPayConfig ( { selectedWallet, selectedNetwork } ) ;
560560 } ,
561561 ) ;
562562 }
You can’t perform that action at this time.
0 commit comments