We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12d4512 commit 20050fdCopy full SHA for 20050fd
src/TodoCount.js
@@ -6,7 +6,7 @@ export default function TodoCount({ $target, initialCount }) {
6
const $container = document.createElement("div");
7
$target.appendChild($container);
8
9
- if (initialCount.total && initialCount.done) {
+ if (initialCount.total) {
10
this.state = initialCount;
11
} else this.state = { total: 0, done: 0 };
12
0 commit comments