From fce8a4d09580e4cf0e0593b6ae90e87ee3c550de Mon Sep 17 00:00:00 2001 From: Humenius Date: Tue, 12 Jan 2021 15:58:58 +0100 Subject: [PATCH] feature(database-connection): Show next navigation button only when below maxSeasonId --- frontend/src/components/SeasonSwitch/SeasonSwitch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/SeasonSwitch/SeasonSwitch.tsx b/frontend/src/components/SeasonSwitch/SeasonSwitch.tsx index 35d43b2..3c628ec 100644 --- a/frontend/src/components/SeasonSwitch/SeasonSwitch.tsx +++ b/frontend/src/components/SeasonSwitch/SeasonSwitch.tsx @@ -21,7 +21,7 @@ const SeasonSwitch: React.FC = (props: IUserListProperties) { - seasonId !== maxSeasonId + seasonId < maxSeasonId && props.onSeasonIdChange('' + (seasonId + 1))}>