Skip to content

Commit

Permalink
Lint fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahulkishanm authored and cpojer committed Mar 20, 2019
1 parent be7db85 commit 3344b56
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Libraries/Components/Picker/PickerIOS.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ class PickerIOS extends React.Component<Props, State> {
let selectedIndex = 0;
const items = [];
React.Children.toArray(props.children)
.filter(child => child != null)
.filter(child => child !== null)
.forEach(function(child, index) {
if (child.props.value === props.selectedValue) {
selectedIndex = index;
}
items.push({
value: child.props.value,
label: child.props.label,
textColor: processColor(child.props.color),
if (child.props.value === props.selectedValue) {
selectedIndex = index;
}
items.push({
value: child.props.value,
label: child.props.label,
textColor: processColor(child.props.color),
});
});
});
return {selectedIndex, items};
}

Expand Down

0 comments on commit 3344b56

Please sign in to comment.