refactor(all): strict boolean conditions

This commit is contained in:
Manu Mtz.-Almeida
2018-08-31 18:59:09 +02:00
parent f383ebdf13
commit ba2230510e
96 changed files with 990 additions and 962 deletions

View File

@ -59,7 +59,7 @@ export class ItemOption {
}
render() {
const TagType = this.href ? 'a' : 'button';
const TagType = this.href === undefined ? 'button' : 'a';
return (
<TagType