EatWithMeApp / eatwithme

3 stars 6 forks source link

Profile UI Crash - no interests #15

Closed MufasaTheMusician closed 5 years ago

MufasaTheMusician commented 5 years ago

Describe the bug The profile UI cards that appear when tapping a pin on the map will crash when there are no interests for the opened profile.

To Reproduce Steps to reproduce the behavior:

  1. Create new user in Firebase with no interests, copy a location from another user so it shows up on the map
  2. Login to app, click the new user's pin

Expected behavior Should show the expected UI for that profile

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context UI just needs to handle the possibility of an empty or null list of interests. Can't remember if it's crashing at first read from Firebase (snapshot.data level) or when the list is actually used.

MufasaTheMusician commented 5 years ago

Will be fixed as part of refactoring #18