From fa0008d22feee39ab9938a69d535a91635eaa01c Mon Sep 17 00:00:00 2001 From: reiyua Date: Sat, 30 Dec 2023 08:22:30 +0000 Subject: [PATCH] Update code comments --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index c16c061..88fb5c4 100644 --- a/src/App.js +++ b/src/App.js @@ -59,11 +59,11 @@ export function MyForm(props) { }; - // Create a function to handle the form submission and add data to Firebase. NOT WORKING + // Create a function to handle the form submission and add data to Firebase. const submitHandler = async (event) => { event.preventDefault() - const incidentsData = { submitter, date, context, selectedOptions } // Use the state variables directly + const incidentsData = { submitter, date, context, selectedOptions } const col = collection(db, `incidents`) const ref = await addDoc(col, incidentsData) console.log(ref)