We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b287a27 commit a3e8aa9Copy full SHA for a3e8aa9
awesome_owl/static/src/counter/counter.js
@@ -8,7 +8,7 @@ export class Counter extends Component {
8
}
9
10
setup() {
11
- this.state = useState({ value: this.props.value? this.props.value : 0 });
+ this.state = useState({ value: this.props.value || 0});
12
13
14
increment() {
0 commit comments