Show message if no conference is found for the specified year

This commit is contained in:
Vencislav Atanasov 2024-09-19 13:20:02 +03:00
parent 8a429b0a93
commit d92a9e807d
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ export default function ScheduleLoader({
return (<> return (<>
{isLoading && <p>Loading conferences...</p>} {isLoading && <p>Loading conferences...</p>}
{error && <p>Error loading conferences: {error}</p>} {error && <p>Error loading conferences: {error}</p>}
{data && !conferenceId && <p>No conference found for year {year}</p>}
{conferenceId && <Schedule conferenceId={conferenceId} lang={lang} />} {conferenceId && <Schedule conferenceId={conferenceId} lang={lang} />}
</>); </>);
} }