From d92ebec2989989472dee57fa8794140ea09f3c22 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 5 Jul 2024 10:44:01 -0400 Subject: [PATCH] render giveaway description (#232) * render giveaway description * null check giveaway desc --- js/load-summary.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/load-summary.js b/js/load-summary.js index c07a8d40..8101cc36 100644 --- a/js/load-summary.js +++ b/js/load-summary.js @@ -30,6 +30,7 @@ function parseAndShowDocument(data, url) { var obj = JSON.parse(data.contents.split('&').join('&').split('<').join('<').split('>').join('>').split('\n').join('
')); var ended = new Date(obj.giveaway.end * 1000); var text = "

Giveaway Summary

" + + obj.giveaway.desc == null ? "" : infoFormat("Description", obj.giveaway.desc) + infoFormat("Prize", obj.giveaway.prize) + infoFormat("Host", userFormat(obj.giveaway.host)) + infoFormat("Winners", obj.giveaway.num_winners)