diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-24 16:02:48 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-24 16:02:48 -0800 |
commit | 8bd7cba6f5ce56bcccda1459cdd953b3add799d6 (patch) | |
tree | d133b5e57cee061fd49eeddcec35dc3b38254a6d /modern/src/login | |
parent | 3106f6ab617b23d6fb2587c3cde2b684abac2605 (diff) | |
download | trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.gz trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.bz2 trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.zip |
Fix lint and issues
Diffstat (limited to 'modern/src/login')
-rw-r--r-- | modern/src/login/LoginPage.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/login/LoginPage.jsx b/modern/src/login/LoginPage.jsx index 6cca2837..62aa4a6b 100644 --- a/modern/src/login/LoginPage.jsx +++ b/modern/src/login/LoginPage.jsx @@ -96,7 +96,7 @@ const LoginPage = () => { const query = `email=${encodeURIComponent(email)}&password=${encodeURIComponent(password)}`; const response = await fetch('/api/session', { method: 'POST', - body: new URLSearchParams(code.length ? query + `&code=${code}` : query), + body: new URLSearchParams(code.length ? `${query}&code=${code}` : query), }); if (response.ok) { const user = await response.json(); |