From 1edb5cd1ec326c0acea28589e7a3f6879ef5613a Mon Sep 17 00:00:00 2001 From: Rei Date: Wed, 27 Dec 2023 16:05:11 +0000 Subject: [PATCH] Add various formatting for readability --- src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index f290ce3..c9ff6c1 100644 --- a/src/App.js +++ b/src/App.js @@ -51,10 +51,10 @@ export function MyForm(props) { // Create a function to handle the form submission and add data to Firebase. const submitHandler = async (event) => { - event.preventDefault() - const incident = { submitter, date, context, selectedOptions } - const col = collection(db, `incidents/`) - const ref = await addDoc(col, incident) + event.preventDefault() + const incident = { submitter, date, context, selectedOptions } + const col = collection(db, `incidents/`) + const ref = await addDoc(col, incident) console.log(ref) }