Skip to content

Commit b9e9c6d

Browse files
committed
changed the location of setShowStats call
1 parent d2ec192 commit b9e9c6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/components/StatsGenerator.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export default function StatsGenerator({ setShowStats }) {
9999
progress: undefined,
100100
theme: "dark",
101101
});
102+
setShowStats(false)
102103
}
103104

104105
function wrongUsername() {
@@ -131,7 +132,7 @@ export default function StatsGenerator({ setShowStats }) {
131132
await setDoc(docRef, transformedUserData);
132133
// console.log("User data added to Firestore successfully!");
133134
dataAdded()
134-
setShowStats(false)
135+
135136
} else {
136137
console.log("User data already exists in Firestore.");
137138
dataThere()

0 commit comments

Comments
 (0)