From 4e55be35bdf76dc09f0365f0d27e2fe57186a7da Mon Sep 17 00:00:00 2001 From: Jagruti Tiwari Date: Thu, 4 Aug 2022 19:43:34 +0530 Subject: [PATCH] feat: show reset button after submitting the code once (#47126) * feat: shows reset after checking code once * fix: changed conditions to hide and show help button --- .../src/templates/Challenges/classic/lower-jaw.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/client/src/templates/Challenges/classic/lower-jaw.tsx b/client/src/templates/Challenges/classic/lower-jaw.tsx index b858a87eee1..4e516673b37 100644 --- a/client/src/templates/Challenges/classic/lower-jaw.tsx +++ b/client/src/templates/Challenges/classic/lower-jaw.tsx @@ -188,9 +188,9 @@ const LowerJaw = ({ const isAttemptsLargerThanTest = attemptsNumber && testsLength && - (attemptsNumber >= testsLength || attemptsNumber > 3); + (attemptsNumber >= testsLength || attemptsNumber >= 3); - if (isAttemptsLargerThanTest && !earliestAvailableCompletion) + if (isAttemptsLargerThanTest && !earliestAvailableCompletion) { return (

@@ -206,6 +206,16 @@ const LowerJaw = ({
); + } else { + return ( +
+
+ +
+ ); + } }; const showDesktopButton = window.innerWidth > MAX_MOBILE_WIDTH;