www: update button color in counter example

This commit is contained in:
Luca Casonato
2022-04-23 20:44:41 +02:00
parent 7d1aec4bce
commit 2449ac4024
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export default function Counter(props: CounterProps) {
<RoundedButton
title="Subtract 1"
onClick={() => setCount(count - 1)}
disabled={!IS_BROWSER}
disabled={!IS_BROWSER || count <= 0}
>
<IconMinus />
</RoundedButton>