fix(frontend): check for ID instead of email after initial setup Plex login (#1097)

This commit is contained in:
TheCatLady
2021-03-05 10:52:43 -05:00
committed by GitHub
parent cd21865c4d
commit 778dda67d5

View File

@@ -25,7 +25,7 @@ const LoginWithPlex: React.FC<LoginWithPlexProps> = ({ onComplete }) => {
const login = async () => {
const response = await axios.post('/api/v1/auth/plex', { authToken });
if (response.data?.email) {
if (response.data?.id) {
revalidate();
}
};