Skip to content

Commit

Permalink
The Statistics page now shows an error if no test has been made
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmyt committed Feb 24, 2023
1 parent c645f84 commit 6974aa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/pages/Statistics/Statistics.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const Statistics = () => {

if (!statistics) return <></>;
if (!tests) return <></>;
if (tests.length === 0) return <h2 className="error-text">{t("test.not_available")}</h2>;

return (
<div className="statistic-area">
Expand Down

0 comments on commit 6974aa2

Please sign in to comment.