Wrong Stats are being displayed when internet connectivity is lost and country is changed
msaini888 opened this issue · comments
Mohit Saini commented
Steps to reproduce the behavior:
- Launch the app and complete onboarding journey.
- Tap on Stats icon in the footer.
- Stats for the selected country is displayed to the user.
- Switch of mobile internet.
- Go to Settings and and change the country from the dropdown.
- Tap on Stats again after changing the country.
Expected Behavior
Previous Country Stats should not be loaded for the changed country
Actual Behavior
Stats of previously selected country are being displayed for the newly selected country.
System
- Device: Huawei Honor 7c
- OS: Android 8.0
- App Version: Version 1.0.0-staging(281)
Additional Context
Another observation is that if we change the country by the search option in the dropdown then this bug doesn't occur, it only happens when we change the country by scrolling the country selector dropdown.
Lost_Connectivity_WrongStats.mp4
Checklist:
- Searched the existing issues to ensure you are not creating a duplicate.
- Followed the Contributor Guidelines.
matthewblain commented
Will be away for several hours but have proposed the fix above.