We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ebaab commit a4b22edCopy full SHA for a4b22ed
src/screens/ReownConnect.js
@@ -26,14 +26,10 @@ function ReownConnect() {
26
27
useEffect(() => {
28
if (prevConnectionStateRef.current === REOWN_CONNECTION_STATE.CONNECTING &&
29
- (connectionState === REOWN_CONNECTION_STATE.FAILED
30
- || connectionState === REOWN_CONNECTION_STATE.SUCCESS)
31
- ) {
+ connectionState === REOWN_CONNECTION_STATE.SUCCESS) {
32
// Clear input text when connection succeeds
33
- if (connectionState === REOWN_CONNECTION_STATE.SUCCESS) {
34
- setUri('');
35
- setShowNewConnectionForm(false);
36
- }
+ setUri('');
+ setShowNewConnectionForm(false);
37
}
38
39
// Update the ref after checking
0 commit comments