Fix plural in footer with 0 items

This commit is contained in:
Elizabeth Craig
2019-02-28 01:13:11 -08:00
parent 417cbc2fb5
commit 677bc9b71a
15 changed files with 15 additions and 15 deletions

View File

@@ -6,7 +6,7 @@ export const TodoFooter = (props: any) => {
return (
<footer>
<span>
{itemCount} item{itemCount > 1 ? 's' : ''} left
{itemCount} item{itemCount === 1 ? '' : 's'} left
</span>
<button className="submit">Clear Completed</button>
</footer>

View File

@@ -6,7 +6,7 @@ export const TodoFooter = props => {
return (
<footer>
<span>
{itemCount} item{itemCount > 1 ? 's' : ''} left
{itemCount} item{itemCount === 1 ? '' : 's'} left
</span>
<button className="submit">Clear Completed</button>
</footer>

View File

@@ -14,7 +14,7 @@ export const TodoFooter = (props: TodoFooterProps) => {
return (
<footer>
<span>
{itemCount} item{itemCount > 1 ? 's' : ''} left
{itemCount} item{itemCount === 1 ? '' : 's'} left
</span>
<button onClick={_onClick} className="submit">
Clear Completed