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

This commit is contained in:
sct
2021-02-22 12:50:19 +00:00
parent f9c83e14e5
commit c4af4c42ab

View File

@@ -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) {