Show message if no conference is found for the specified year
This commit is contained in:
parent
8a429b0a93
commit
d92a9e807d
|
@ -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} />}
|
||||||
</>);
|
</>);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue