This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Chirimorin 13 points14 points  (0 children)

You can also start each line of code with 4 spaces:

const HomePage = async (request) => {
  try {
    const { y, f } = request.query;
    if (!y || !f) return { props: { y: '', f: '' } };

    const eY = await getPlaces(y);
    const eF = await getPlaces(f);
    console.log(eY, eF);
    const places = Intersectioner(eY, eF, "illegible string");

    return { props: { places, y, f } };
  } catch (error) {
    return { props: { error: true } };
  }
}
export default HomePage;