Fixed sport display.

This commit is contained in:
2022-04-05 20:13:55 -05:00
parent 0a2d513d3c
commit 6cd421ba01
2 changed files with 4 additions and 26 deletions

View File

@@ -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 (