scorelab / dengue-stop-old

Dengue-Stop
Apache License 2.0
25 stars 64 forks source link

Profile Section: Current User Reports #260

Open rheo-chiti opened 4 years ago

rheo-chiti commented 4 years ago

This fixes #259

Current User Reports Screen
On clicking reports in the profile screen, the user is navigated to here. Data is fetched from the firebase. Firstly all reports are fetched, then a filter is applied which only allows those reports whose email id matches current user email id. This code is used:- let newReports = reports.filter(report => report.email === currentUserEmail)

image