From e91883ea8b430ccc3273aab54ff72092b80c7d23 Mon Sep 17 00:00:00 2001 From: Stefano Ricci Date: Wed, 15 Nov 2023 23:21:34 +0100 Subject: [PATCH 1/2] fixed error shown on login with invalid email --- webapp/app/appWebSocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/app/appWebSocket.js b/webapp/app/appWebSocket.js index 2b22ebe689..1fda178ca6 100644 --- a/webapp/app/appWebSocket.js +++ b/webapp/app/appWebSocket.js @@ -11,7 +11,7 @@ let socket = null const _addSocketIdToEveryRequest = () => { axios.interceptors.request.use((config) => { // eslint-disable-next-line no-param-reassign - config.headers.socketid = socket.id + config.headers.socketid = socket?.id return config }) } From 771aac666bee49a12328b45274aeba9fcada8956 Mon Sep 17 00:00:00 2001 From: Stefano Ricci Date: Wed, 15 Nov 2023 23:21:58 +0100 Subject: [PATCH 2/2] password change: fixed form not reset properly --- .../App/views/Users/UserPasswordChange/UserPasswordChange.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/views/App/views/Users/UserPasswordChange/UserPasswordChange.js b/webapp/views/App/views/Users/UserPasswordChange/UserPasswordChange.js index 861a39acad..cd7392eb6c 100644 --- a/webapp/views/App/views/Users/UserPasswordChange/UserPasswordChange.js +++ b/webapp/views/App/views/Users/UserPasswordChange/UserPasswordChange.js @@ -55,6 +55,7 @@ const UserPasswordChange = () => { autoComplete={key === UserPasswordChangeForm.keys.oldPassword ? 'password' : 'new-password'} label={i18n.t(`userPasswordChangeView.${key}`)} onChange={setStateProp(key)} + value={form[key]} />