Skip to content

Commit

Permalink
Fix number cannot be assigned to string issue in script example (with…
Browse files Browse the repository at this point in the history
…astro#4421)

Co-authored-by: Chris Swithinbank <[email protected]>
  • Loading branch information
sunapi386 and delucis authored Aug 30, 2023
1 parent d6034c9 commit 53fd5ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/client-side-scripts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ In this example, we define a new `<astro-heart>` HTML element that tracks how ma
// Each time the button is clicked, update the count.
heartButton.addEventListener('click', () => {
count++;
countSpan.textContent = count;
countSpan.textContent = count.toString();
});
}
}
Expand Down

0 comments on commit 53fd5ad

Please sign in to comment.