Skip to content

Commit 35a576c

Browse files
committed
chore: refine counter display update
Made-with: Cursor
1 parent 9f8db21 commit 35a576c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const resetBtn = document.getElementById('reset');
66
const increaseBtn = document.getElementById('increase');
77

88
function updateDisplay() {
9-
counterDisplay.textContent = count;
9+
counterDisplay.textContent = count.toString();
1010
if (count > 0) {
1111
counterDisplay.style.color = '#2ecc71';
1212
} else if (count < 0) {

0 commit comments

Comments
 (0)