The backend API is repeatedly being called for no reason even after the match data have been finished loading.
This is causing the match history section data to sometimes show values like NaN for a brief moment and then returning back to normal values. useState hooks and useEffect hooks use must be fixed so that the API is only called when necessary.
Acceptance Criteria
Issue where match data fetching API is repeatedly called has been resolved
Problem
The backend API is repeatedly being called for no reason even after the match data have been finished loading. This is causing the match history section data to sometimes show values like
NaN
for a brief moment and then returning back to normal values.useState
hooks anduseEffect
hooks use must be fixed so that the API is only called when necessary.Acceptance Criteria