@@ -98,7 +126,9 @@ export function LiveChat({ link, options, height, }: { link: NostrLink, options?
);
}
case EventKind.ZapReceipt: {
- const zap = zaps.find(b => b.id === a.id && b.receiver === streamer);
+ const zap = zaps.find(
+ (b) => b.id === a.id && b.receiver === streamer
+ );
if (zap) {
return
;
}
@@ -126,20 +156,22 @@ function ChatZap({ zap }: { zap: ParsedZap }) {
return null;
}
- return
-
-
-
- zapped
-
{formatSats(zap.amount)}
- sats
+ return (
+
+
+
+
+ zapped
+
{formatSats(zap.amount)}
+ sats
+
+ {zap.content &&
{zap.content}
}
- {zap.content &&
{zap.content}
}
-
-}
\ No newline at end of file
+ );
+}