Add TODO to code itself

This commit is contained in:
Eliot Partridge
2019-09-13 16:44:40 -05:00
parent be6e518a08
commit 09aa3614da
+2
View File
@@ -121,6 +121,8 @@ export function getProfileUrl(profile: OAuthProfile): string | undefined {
export function getProfileEmails(profile: OAuthProfile): string[] {
if (profile.provider === 'discord') {
// TODO: diagnose why we aren't receiving the email from Discord
// for now, we just won't attempt to record an email if we don't receive one
return profile.email ? [profile.email] : [];
} else if (profile.emails && profile.emails.length) {
return profile.emails.map(e => e.value);