mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-31 09:52:24 +00:00
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:
1 file changed
+7
-7
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user