fix bug with zapping streams

This commit is contained in:
hzrd149 2023-07-01 15:15:58 -05:00
parent 12b78da052
commit 543d964877

View File

@ -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}>