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)
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)