From c82c12ff5480a5ace3dcecc41814b909cbbee884 Mon Sep 17 00:00:00 2001 From: KubaJedrak Date: Sun, 6 Sep 2020 18:29:07 +0200 Subject: [PATCH] fixed diary, added AboutUs section --- src/components/diary/DiaryItemCard.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/diary/DiaryItemCard.jsx b/src/components/diary/DiaryItemCard.jsx index 93c8d33..8469b91 100644 --- a/src/components/diary/DiaryItemCard.jsx +++ b/src/components/diary/DiaryItemCard.jsx @@ -15,7 +15,7 @@ const DiaryItemCard = ({ posts, postFilter, onDelete }) => { } } - if (posts[0].id === null) { + if (posts.lenght === 0) { return (

Jak się dziś czujesz?

To mieisce na Twoje przemyślenia i doznania, których doświadczasz na co dzięń...