feature(database-connection): Show next navigation button only when below maxSeasonId

This commit is contained in:
2021-01-12 15:58:58 +01:00
parent 59636415ef
commit fce8a4d095

View File

@@ -21,7 +21,7 @@ const SeasonSwitch: React.FC<IUserListProperties> = (props: IUserListProperties)
<SeasonDetail {...props} />
{
seasonId !== maxSeasonId
seasonId < maxSeasonId
&& <Link to={"/season/" + (seasonId + 1)} onClick={() => props.onSeasonIdChange('' + (seasonId + 1))}>
<FontAwesomeIcon icon="arrow-circle-right"/>
</Link>