diff options
Diffstat (limited to 'modern/src/SocketController.js')
-rw-r--r-- | modern/src/SocketController.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js index 73df6d0a..cda693a1 100644 --- a/modern/src/SocketController.js +++ b/modern/src/SocketController.js @@ -51,8 +51,7 @@ const SocketController = () => { useEffectAsync(async () => { const response = await fetch('/api/server'); if (response.ok) { - const server = await response.json(); - dispatch(sessionActions.updateServer(server)); + dispatch(sessionActions.updateServer(await response.json())); } }, []); |