From e9d7c156cc4a7892273e60f1d3b1df0ed49ab9de Mon Sep 17 00:00:00 2001 From: Alexander Polynomdivision Date: Mon, 15 Oct 2018 17:01:18 +0200 Subject: [PATCH] feat: If no vocabulary has been learned, this should be told --- frontend/src/pages/vocab.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/pages/vocab.tsx b/frontend/src/pages/vocab.tsx index 3a09664..6044a6b 100644 --- a/frontend/src/pages/vocab.tsx +++ b/frontend/src/pages/vocab.tsx @@ -131,6 +131,15 @@ export default class VocabPage extends React.Component { const { vocab } = this.props; return
{vocab.map(this.vocabToCard)} + { + vocab.length === 0 ? ( +
+ + Noch keine Vokabeln gelernt + +
+ ) : undefined + }