Skip to content

Commit

Permalink
Fixed Bug of open issue koushikkothagal#16 "Some teams have not playe…
Browse files Browse the repository at this point in the history
…d all seasons, so on clicking more it displays an empty page for those teams"

Providing link {/teams/${teamName}/matches/${team.matches[0].date.slice(0,4)} instead of {`/teams/${teamName}/matches/${process.env.REACT_APP_DATA_END_YEAR}`}
  • Loading branch information
Mohammed-Amjad authored May 24, 2021
1 parent 9f8ba21 commit ef18fc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/pages/TeamPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export const TeamPage = () => {
</div>
{team.matches.slice(1).map(match => <MatchSmallCard key={match.id} teamName={team.teamName} match={match} />)}
<div className="more-link">
<Link to={`/teams/${teamName}/matches/${process.env.REACT_APP_DATA_END_YEAR}`}>More ></Link>
<Link to={`/teams/${teamName}/matches/${team.matches[0].date.slice(0,4)}`}>More ></Link>
</div>
</div>
);
}
}

0 comments on commit ef18fc8

Please sign in to comment.