SamanthaGuillemette / SOEN390

SOEN390 Project
MIT License
5 stars 0 forks source link

Fixed Edit Profile Bug #361

Closed MarwaKhalid closed 2 years ago

MarwaKhalid commented 2 years ago

@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.