We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8770395 commit d2ec192Copy full SHA for d2ec192
client/src/components/StatsGenerator.jsx
@@ -129,12 +129,15 @@ export default function StatsGenerator({ setShowStats }) {
129
if (!docSnapshot.exists()) {
130
// Add the data only if it doesn't exist
131
await setDoc(docRef, transformedUserData);
132
- console.log("User data added to Firestore successfully!");
+ // console.log("User data added to Firestore successfully!");
133
dataAdded()
134
+ setShowStats(false)
135
} else {
136
console.log("User data already exists in Firestore.");
137
dataThere()
138
}
139
+
140
141
142
catch (err) {
143
console.log(err);
0 commit comments