diff --git a/public/js/profileGen.js b/public/js/profileGen.js index dda9818..cc09803 100644 --- a/public/js/profileGen.js +++ b/public/js/profileGen.js @@ -1,5 +1,12 @@ -function profileGen(username, container) { - queryAPIByUser("", username, (user) => { +function profileGen(username, container) +{ + queryAPIByUser("", username, (user) => + { + if(!user.hasOwnProperty("id")) + { + alert("User Does Not Exist"); + window.location.href = "./GraphGenerator.html"; + } parseOrgs(user.login).then( (orgsReturn) => { let html = "
\