don't show suggestions when suggestions.length === 0, show 'Rozpocznij od nowa' button in review mode on every tab
This commit is contained in:
parent
5860d13b37
commit
b6ec058603
|
@ -41,7 +41,7 @@ const TestPage = ({ questions, suggestions, qualification }: TestPageProps) => {
|
|||
} ${polishPlurals('pytanie', 'pytania', 'pytań', questions.length)}`}
|
||||
/>
|
||||
<Test initialQuestions={questions} qualification={qualification} />
|
||||
<Suggestions suggestions={suggestions} />
|
||||
{suggestions.length > 0 && <Suggestions suggestions={suggestions} />}
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -59,7 +59,7 @@ const Navigation = ({
|
|||
Zakończ test
|
||||
</Button>
|
||||
)}
|
||||
{isLastQuestion && reviewMode && (
|
||||
{reviewMode && (
|
||||
<Button startIcon={<RefreshIcon />} onClick={onReset}>
|
||||
Rozpocznij od nowa
|
||||
</Button>
|
||||
|
|
Reference in New Issue