From 7f7164a61ea59d82f917dd3f89a56b2a8208b2cc Mon Sep 17 00:00:00 2001 From: Philipp Walter Date: Mon, 21 Oct 2024 13:06:02 +0200 Subject: [PATCH] fix(transfer): refresh LDK after CJIT (#2315) --- src/utils/lightning/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/lightning/index.ts b/src/utils/lightning/index.ts index 2ed33b6b0..5396d6cf6 100644 --- a/src/utils/lightning/index.ts +++ b/src/utils/lightning/index.ts @@ -519,7 +519,9 @@ export const subscribeToLightningPayments = ({ // Check if this is a CJIT Entry that needs to be added to the activity list. addCJitActivityItem(res.channel_id).then(); - // we need to sync the ledger because TChannelUpdate doesn't have enough data + // Refresh to update balance + refreshLdk(); + // We need to sync the ledger because TChannelUpdate doesn't have enough data syncLedger(); }, );