Skip to content

Commit a3e8aa9

Browse files
trcaziercgun-odoo
andcommitted
[IMP] awesome_owl: replace redundant ternary operator with ||
Co-authored-by: Cemal Faruk Güney <[email protected]>
1 parent b287a27 commit a3e8aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awesome_owl/static/src/counter/counter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class Counter extends Component {
88
}
99

1010
setup() {
11-
this.state = useState({ value: this.props.value? this.props.value : 0 });
11+
this.state = useState({ value: this.props.value || 0});
1212
}
1313

1414
increment() {

0 commit comments

Comments
 (0)