Merge pull request #876 from PR0M3TH3AN/codex/hide-admin-lightning-address-after-sending-zap

Hide platform lightning address in zap receipts
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-10-24 21:52:59 -04:00
commit f5cb3c4997
1 file changed
+7 -7
+7 -7
View File
@@ -3529,12 +3529,12 @@ export class VideoModal {
const shareType = receipt.recipientType || receipt.type || "creator";
const shareLabel = this.document.createElement("span");
const label =
shareType === "platform"
? "Platform"
: shareType === "creator"
? "Creator"
: "Lightning";
const isPlatformShare = shareType === "platform";
const label = isPlatformShare
? "Platform fee"
: shareType === "creator"
? "Creator"
: "Lightning";
shareLabel.textContent = `${label} • ${Math.max(
0,
Math.round(Number(receipt.amount || 0))
@@ -3553,7 +3553,7 @@ export class VideoModal {
const address = this.document.createElement("p");
address.className = "mt-1 text-xs text-text break-all";
if (receipt.address) {
if (receipt.address && !isPlatformShare) {
address.textContent = receipt.address;
li.appendChild(address);
}