Fix small nitpicks
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
314272fe1e
commit
fc3aec8667
|
@ -79,9 +79,7 @@ export async function getUpcomingEvents(): Promise<Event[]> {
|
|||
try {
|
||||
const eventsInTerm = await getEventsByTerm(year, TERMS[term]);
|
||||
return await Promise.all(
|
||||
eventsInTerm.map(
|
||||
async (slug) => await getEventBySlug(year, TERMS[term], slug)
|
||||
)
|
||||
eventsInTerm.map((slug) => getEventBySlug(year, TERMS[term], slug))
|
||||
);
|
||||
} catch (error) {
|
||||
return [];
|
||||
|
|
|
@ -82,9 +82,7 @@ export async function getRecentNews(): Promise<News[]> {
|
|||
try {
|
||||
const newsInTerm = await getNewsByTerm(year, TERMS[term]);
|
||||
return await Promise.all(
|
||||
newsInTerm.map(
|
||||
async (slug) => await getNewsBySlug(year, TERMS[term], slug)
|
||||
)
|
||||
newsInTerm.map((slug) => getNewsBySlug(year, TERMS[term], slug))
|
||||
);
|
||||
} catch (error) {
|
||||
return [];
|
||||
|
|
|
@ -57,7 +57,7 @@ export default function Home(props: Props) {
|
|||
</Link>
|
||||
</p>
|
||||
<hr className={styles.cardsDividingLine} />
|
||||
{props.numberOfEvents == 0 ? (
|
||||
{props.numberOfEvents === 0 ? (
|
||||
<p>
|
||||
There are no upcoming events right now. Please check back later!
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue