fix(frontend): check for id instead of email after logging in

pull/992/head
sct 4 years ago
parent f9c83e14e5
commit c4af4c42ab

@ -37,7 +37,7 @@ const Login: React.FC = () => {
try {
const response = await axios.post('/api/v1/auth/login', { authToken });
if (response.data?.email) {
if (response.data?.id) {
revalidate();
}
} catch (e) {

Loading…
Cancel
Save