tbd-friends / water-drink-water

An application to help you remember to drink water

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preferences does not load the existing preference when showing screen

tbd-develop opened this issue · comments

When you navigate away from preferences and return, the value resets to 0 even though the database has the value stored.

Expected Behavior; Should show the value last entered

Test;

  • Navigate to Preferences, enter a value of 64
  • Validate the database has a preference of 64 target fluid ounces
  • Navigate to Log
  • Navigate back to Preferences
  • Value should show 64

Looking at this, it looks like a new endpoint will be needed to get the preferences from the api, additionally the preferences page needs to be initialized from that endpoint.

As we added timezone offset to the preferences since this was done, we should also load this preference and display options for selecting timezone.