Fix small nitpicks
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Amy 2021-08-23 12:11:55 -04:00
parent 314272fe1e
commit fc3aec8667
3 changed files with 3 additions and 7 deletions

View File

@ -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 [];

View File

@ -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 [];

View File

@ -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>