Skip to content

Commit

Permalink
Fix line length.
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 17, 2024
1 parent 78d101e commit a37e4d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/samples/sample5.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ function Counter({ list }: { list: List }) {
const span = <span /> as HTMLSpanElement;

const updateText = () => {
span.textContent = `Done: ${list.doneItems().length}/${list.items.length}`;
const done = list.doneItems().length;
const total = list.items.length;
span.textContent = `Done: ${done}/${total}`;
};

updateText();
Expand Down

0 comments on commit a37e4d2

Please sign in to comment.