Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33341841
D13620.1768924506.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
850 B
Referenced Files
None
Subscribers
None
D13620.1768924506.diff
View Options
diff --git a/landing/connect-farcaster.react.js b/landing/connect-farcaster.react.js
--- a/landing/connect-farcaster.react.js
+++ b/landing/connect-farcaster.react.js
@@ -41,12 +41,6 @@
validSignature,
} = signInState;
- React.useEffect(() => {
- if (!channelToken) {
- connect();
- }
- }, [channelToken, connect]);
-
const messageSentRef = React.useRef<boolean>(false);
const authenticated = isSuccess && validSignature;
@@ -57,6 +51,8 @@
if (isError) {
messageSentRef.current = false;
reconnect();
+ } else if (!channelToken) {
+ connect();
}
signIn();
@@ -69,7 +65,7 @@
url: url.toString(),
});
}
- }, [authenticated, isError, reconnect, signIn, url]);
+ }, [authenticated, isError, reconnect, channelToken, connect, signIn, url]);
return null;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 20, 3:55 PM (5 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5961435
Default Alt Text
D13620.1768924506.diff (850 B)
Attached To
Mode
D13620: [landing] Fix ConnectFarcaster
Attached
Detach File
Event Timeline
Log In to Comment