Skip to content

Commit

Permalink
Merge pull request #25 from infoshareacademy/michPas
Browse files Browse the repository at this point in the history
Mich pas
  • Loading branch information
KubaJedrak authored Sep 6, 2020
2 parents 01ac6f9 + 03de76d commit 21d17b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/diary/Diary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Diary extends React.Component {
})
.catch(() => {
this.setState({
posts: this.state.posts,
posts: startState.posts,
})
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/diary/DiaryItemCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const DiaryItemCard = ({ posts, postFilter, onDelete }) => {
}
}

if (posts.lenght === 0) {
if (posts.length === 0) {
return (<div className={styles.diary__post__content} style={{ paddingLeft: '3%' }}>
<h3>Jak się dziś czujesz?</h3>
<p>To mieisce na Twoje przemyślenia i doznania, których doświadczasz na co dzięń...</p>
<p>To mieisce na Twoje przemyślenia i doznania, których doświadczasz na codzień...</p>
</div>)
}

Expand Down

0 comments on commit 21d17b4

Please sign in to comment.