From 9f8c402e1ad2189d4d1098e46e794a800c7e21ff Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Tue, 19 Apr 2022 23:02:29 +0530 Subject: [PATCH] fix: challenge modal styles (#987) --- .../Components/ChallengeModal/ChallengeModal.tsx | 8 +++++--- .../Components/ChallengeModal/ChallengePrompt.tsx | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/Components/ChallengeModal/ChallengeModal.tsx b/app/assets/javascripts/Components/ChallengeModal/ChallengeModal.tsx index bf8219fea96..bc71c5dc694 100644 --- a/app/assets/javascripts/Components/ChallengeModal/ChallengeModal.tsx +++ b/app/assets/javascripts/Components/ChallengeModal/ChallengeModal.tsx @@ -208,9 +208,11 @@ export const ChallengeModal: FunctionComponent = ({ )}
{challenge.heading}
-
{challenge.subheading}
+ {challenge.subheading && ( +
{challenge.subheading}
+ )}
{ e.preventDefault() submit().catch(console.error) @@ -230,7 +232,7 @@ export const ChallengeModal: FunctionComponent = ({