From 8260cadf17c08be190095f4aa335709e36c478ed Mon Sep 17 00:00:00 2001 From: Nastya Date: Fri, 5 Apr 2024 13:43:28 +0300 Subject: [PATCH] console --- lib/components/ViewPublicationPage/Footer.tsx | 5 ++--- lib/components/ViewPublicationPage/ViewPublicationPage.tsx | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/ViewPublicationPage/Footer.tsx b/lib/components/ViewPublicationPage/Footer.tsx index 25beeb9..cf5c0bd 100644 --- a/lib/components/ViewPublicationPage/Footer.tsx +++ b/lib/components/ViewPublicationPage/Footer.tsx @@ -17,7 +17,8 @@ export const Footer = ({ stepNumber, nextButton, prevButton }: FooterProps) => { const questionsAmount = questions.filter( ({ type }) => type !== "result" ).length; - + if (stepNumber === null) stepNumber = -1 +console.log("stepNumber ", stepNumber) return ( { {/*):(*/} {/* */} {/*)}*/} - {stepNumber !== null && ( Вопрос {stepNumber} из {questionsAmount} - )}