Skip to content

Commit 5a020f3

Browse files
committed
small bug fix
1 parent 267554f commit 5a020f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react/core/04-forms/lecture/Counter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Props = {
88

99
export function Counter({ count, setCount, minCount = 0 }: Props) {
1010
function subtract() {
11-
if (count >= minCount) {
11+
if (count > minCount) {
1212
setCount(count - 1)
1313
}
1414
}

0 commit comments

Comments
 (0)