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