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} - )}