From 8925eee72e721f80fcde78416ed403e511231130 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 5 Oct 2025 14:07:15 -0400 Subject: [PATCH] Fix channel zap share amount tracking --- js/channelProfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/channelProfile.js b/js/channelProfile.js index 5e3207c7..daaf8269 100644 --- a/js/channelProfile.js +++ b/js/channelProfile.js @@ -556,7 +556,7 @@ function createZapDependencies({ creatorEntry, platformEntry, shares, shareTrack }, sendPayment: async (bolt11, params) => { const shareType = activeShare || "unknown"; - const amount = + const shareAmount = shareType === "platform" ? shares.platformShare : shares.creatorShare; @@ -570,7 +570,7 @@ function createZapDependencies({ creatorEntry, platformEntry, shares, shareTrack shareTracker.push({ type: shareType, status: "success", - amount, + amount: shareAmount, address, payment, }); @@ -581,7 +581,7 @@ function createZapDependencies({ creatorEntry, platformEntry, shares, shareTrack shareTracker.push({ type: shareType, status: "error", - amount, + amount: shareAmount, address, error, }); @@ -590,7 +590,7 @@ function createZapDependencies({ creatorEntry, platformEntry, shares, shareTrack "wallet.sendPayment", { shareType, - amount, + amount: shareAmount, address, tracker: shareTracker, context: { shares },