We need to display the questionnaire scores on the trends tab so need to fetch them from firebase.
Solution
Fetch scores from firebase and put in an array that can be used in the trends tab.
Best way to do it is include it as a state variable so that when a user takes a survey, the trends tab is updated.
Additional context
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct and Contributing Guidelines
Problem
We need to display the questionnaire scores on the trends tab so need to fetch them from firebase.
Solution
Fetch scores from firebase and put in an array that can be used in the trends tab. Best way to do it is include it as a state variable so that when a user takes a survey, the trends tab is updated.
Additional context
No response
Code of Conduct