Skip to content

Commit

Permalink
fix socket init
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed Jan 8, 2024
1 parent 806cb78 commit 28093e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/Devtools/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,9 @@ export default function Devtools() {
state.socket,
state.initSocket,
]);
const storageTypes = useStorageTypes();

useEffect(() => {
if (!socket) return;
if (socket) return;
initSocket(address);
}, [address, initSocket, socket]);

Expand Down

0 comments on commit 28093e4

Please sign in to comment.