diff --git a/src/App.js b/src/App.js index 88fb5c4..884303b 100644 --- a/src/App.js +++ b/src/App.js @@ -67,6 +67,8 @@ export function MyForm(props) { const col = collection(db, `incidents`) const ref = await addDoc(col, incidentsData) console.log(ref) + alert("Form submitted successfully!"); + window.location.reload(); } // Create form for user to imput data @@ -167,7 +169,6 @@ export function MyForm(props) { -
Refresh once submitted to see result added below.