Skip to content

Commit

Permalink
Fix conditiontal operator
Browse files Browse the repository at this point in the history
  • Loading branch information
oscaroceguera committed Jan 16, 2018
1 parent b07347b commit e170632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/higher-order.md
Expand Up @@ -257,7 +257,7 @@ class List extends Component {
// Using a function so that your cursors' path can use the component's props etc.
export default branch((props, context) => {
return {
colors: [props.alternative ? 'alternativeColors', 'colors']
colors: [props.alternative ? 'alternativeColors' : 'colors']
};
}, List);
```
Expand Down

0 comments on commit e170632

Please sign in to comment.