Skip to content

Commit 7946aac

Browse files
committed
errors log fix
1 parent 3093dca commit 7946aac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

client/src/Hooks/useUpdaterSocket.hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function useUpdaterSocket(updateData, auth) {
3939
console.log("ws open")
4040
},
4141
onClose: (e) => {
42-
console.error("ws close")
42+
console.log("ws close")
4343
},
4444
onMessage: (e) => {
4545
console.log("ws update message")

client/src/Pages/AuthPage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ function AuthPage() {
3232
useEffect(() => {
3333
if (error) setMessage([error, false])
3434
clearError()
35-
}, [error, clearError])
35+
// eslint-disable-next-line react-hooks/exhaustive-deps
36+
}, [error])
3637

3738
/**
3839
* обработчик ввода данных в форму

0 commit comments

Comments
 (0)