From b1e11b93d63b4c20d0da6e42f41c782f30cd2111 Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 27 Mar 2024 22:45:19 +0100 Subject: [PATCH] fix: github api --- docs/src/components/AnswerNumber.astro | 2 +- docs/src/components/ChallengeFooter.astro | 33 ++++++++++++++--------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/docs/src/components/AnswerNumber.astro b/docs/src/components/AnswerNumber.astro index 634c4bc..12b248d 100644 --- a/docs/src/components/AnswerNumber.astro +++ b/docs/src/components/AnswerNumber.astro @@ -4,7 +4,7 @@ const response = await fetch(`https://api.github.com/search/issues?q=repo:tomala const { total_count } = await response.json(); --- -
Answered by {total_count} people
+{total_count ?
Answered by {total_count} people
: null }