diff --git a/src/components/modals/StatsModal.tsx b/src/components/modals/StatsModal.tsx index 06bfcf5..b9a61cc 100644 --- a/src/components/modals/StatsModal.tsx +++ b/src/components/modals/StatsModal.tsx @@ -52,17 +52,62 @@ export const StatsModal = ({ ) } - return ( - -
-

- [{partofspeech}] {definition} + + if (isGameLost || isGameWon) { + return ( + +
+

+ [{partofspeech}] {definition} +

+
+ +

+ {STATISTICS_TITLE}

-

+ +

+ {GUESS_DISTRIBUTION_TEXT} +

+ +
+
+
{NEW_WORD_TEXT}
+ +
+ +
+
+ ) + } -

- {STATISTICS_TITLE} -

+ // Game finished and + return ( +

{GUESS_DISTRIBUTION_TEXT}