From 64279f37c0fa21407cf3c71394e52e0f047d2ad5 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Tue, 19 Apr 2022 22:53:01 +0530 Subject: [PATCH] fix: challenge modal styles --- .../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 = ({