@QuangTran304 you were performing setDoc, which means you were overwriting the content of the document. Since you weren't passing the email as a field in setDoc, it affected the patient profile on Admin app.
Instead of setDoc, I simply used updateDoc and updated the necessary fields since we have a handful of other fields like newCase and it doesn't make sense to pass all of the fields in setDoc.
@QuangTran304 you were performing setDoc, which means you were overwriting the content of the document. Since you weren't passing the email as a field in setDoc, it affected the patient profile on Admin app.
Instead of setDoc, I simply used updateDoc and updated the necessary fields since we have a handful of other fields like newCase and it doesn't make sense to pass all of the fields in setDoc.