Add various formatting for readability

This commit is contained in:
Ray 2023-12-27 16:05:11 +00:00 committed by GitHub
parent ca09e318b7
commit 1edb5cd1ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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