EventCarousel: Do not show placeholder if already has results
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
5d1921b2cc
commit
6fb8290444
|
@ -40,11 +40,11 @@ const EventCarousel: React.FC<IEventCarousel> = ({ statusIds, isLoading, emptyMe
|
|||
setIndex(index % statusIds.size);
|
||||
};
|
||||
|
||||
if (isLoading) {
|
||||
return <PlaceholderEventPreview />;
|
||||
}
|
||||
|
||||
if (statusIds.size === 0) {
|
||||
if (isLoading) {
|
||||
return <PlaceholderEventPreview />;
|
||||
}
|
||||
|
||||
return (
|
||||
<Card variant='rounded' size='lg'>
|
||||
{emptyMessage}
|
||||
|
|
Loading…
Reference in New Issue