Fixed sport display.
This commit is contained in:
@@ -8,7 +8,7 @@ export default class SportInfoCardDisplay extends React.Component {
|
||||
}
|
||||
render() {
|
||||
let sports = null;
|
||||
if(this.props.recommendedsports && this.props.recommendedsports.length > 0) {
|
||||
if (this.props.recommendedsports.length > 0) {
|
||||
sports = this.props.recommendedsports.map((sport) => <SportInfoCard key={sport._id} sport={sport}></SportInfoCard>);
|
||||
}
|
||||
return (
|
||||
|
Reference in New Issue
Block a user