From 9b8fae42784844541802f82921967a3882d25306 Mon Sep 17 00:00:00 2001 From: Dessa Simpson Date: Wed, 12 Aug 2020 12:43:30 -0700 Subject: [PATCH] Check whether profile image exists before attempting to display it --- public/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/main.js b/public/main.js index 41d6259..2a92bdc 100644 --- a/public/main.js +++ b/public/main.js @@ -21,7 +21,7 @@ function buildTable(requests,allRequests) { for (request of requests) { console.log(request); requestsDivHTML += `${request.url}\ - ${request.requester}\ + ${request.imageurl ? `` : ''}${request.requester}\ ${request.score}`; if (allRequests) requestsDivHTML += `${request.state}`; if (window.loggedIn) {