From b6ec058603ceb22ec1bb509d792f7de333a489d1 Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Sat, 17 Apr 2021 18:47:00 +0200 Subject: [PATCH] don't show suggestions when suggestions.length === 0, show 'Rozpocznij od nowa' button in review mode on every tab --- src/features/QualificationPage/features/TestPage/TestPage.tsx | 2 +- .../features/TestPage/components/Test/Navigation.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/QualificationPage/features/TestPage/TestPage.tsx b/src/features/QualificationPage/features/TestPage/TestPage.tsx index 11c05fd..fbb487d 100644 --- a/src/features/QualificationPage/features/TestPage/TestPage.tsx +++ b/src/features/QualificationPage/features/TestPage/TestPage.tsx @@ -41,7 +41,7 @@ const TestPage = ({ questions, suggestions, qualification }: TestPageProps) => { } ${polishPlurals('pytanie', 'pytania', 'pytań', questions.length)}`} /> - + {suggestions.length > 0 && } ); }; diff --git a/src/features/QualificationPage/features/TestPage/components/Test/Navigation.tsx b/src/features/QualificationPage/features/TestPage/components/Test/Navigation.tsx index f6998ef..bca7e86 100644 --- a/src/features/QualificationPage/features/TestPage/components/Test/Navigation.tsx +++ b/src/features/QualificationPage/features/TestPage/components/Test/Navigation.tsx @@ -59,7 +59,7 @@ const Navigation = ({ Zakończ test )} - {isLastQuestion && reviewMode && ( + {reviewMode && (