mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-11 13:20:37 +02:00
fix bug with zapping streams
This commit is contained in:
parent
12b78da052
commit
543d964877
@ -139,7 +139,7 @@ export default function StreamChat({ stream, ...props }: CardProps & { stream: P
|
||||
|
||||
const { requestPay } = useInvoiceModalContext();
|
||||
const zapMetadata = useUserLNURLMetadata(stream.author);
|
||||
const zapMessage = useCallback(async () => {
|
||||
const zapMessage = async () => {
|
||||
try {
|
||||
if (!zapMetadata.metadata?.callback) throw new Error("bad lnurl endpoint");
|
||||
|
||||
@ -167,7 +167,7 @@ export default function StreamChat({ stream, ...props }: CardProps & { stream: P
|
||||
} catch (e) {
|
||||
if (e instanceof Error) toast({ description: e.message });
|
||||
}
|
||||
}, [stream]);
|
||||
};
|
||||
|
||||
return (
|
||||
<IntersectionObserverProvider callback={callback} root={scrollBox}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user