diff --git a/.gitignore b/.gitignore
index 1cc4f16..1e163ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,4 +22,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
-.firebase
\ No newline at end of file
+.firebase
+
+src/components/testData.json
\ No newline at end of file
diff --git a/src/App.js b/src/App.js
index 93aef7e..e563d61 100644
--- a/src/App.js
+++ b/src/App.js
@@ -59,10 +59,10 @@ function App() {
const patient = document.data();
patients.push(patient);
const { gender } = patient;
- if (gender.toLowerCase() === 'male') {
+ if (gender?.toLowerCase() === 'male') {
maleCount++;
}
- if (gender.toLowerCase() === 'female') {
+ if (gender?.toLowerCase() === 'female') {
femaleCount++;
}
});
@@ -139,12 +139,14 @@ function App() {
ShanMukha
+
ShanMukha
+