diff --git a/src/components/ZapThreadsWrapper.js b/src/components/ZapThreadsWrapper.js index 1b129b7..e4c36f8 100644 --- a/src/components/ZapThreadsWrapper.js +++ b/src/components/ZapThreadsWrapper.js @@ -9,6 +9,9 @@ const ZapThreadsWrapper = ({ anchor, user, relays, disable, className, isAuthori if (!isAuthorized) { return; } + + // Store the current value of zapRef to use in the cleanup function + const currentZapRef = zapRef.current; // Create a new