CS342 / 2023-Utah

The CS342 2023 U-STEP Project
MIT License
0 stars 3 forks source link

Step count not refreshing properly #96

Closed jennxu23 closed 1 year ago

jennxu23 commented 1 year ago

Description

In Draft PR 95, the step count data card doesn't update immediately when a new step count observation is recorded. The user has to swap between the trends tab and another tab at least twice before the updated value is shown.

Reproduction

  1. Create an account if there isn't one already.
  2. Go to the Health App.
  3. Add a step count measurement.
  4. (Optioanl) Make sure the step count observation was uploaded to FireStore.
  5. Go to the trends tab.
  6. If the step count card is not updated, toggle between the trends tab and another tab until the number changes.

Expected behavior

The step count card should update if there is a change in the step count data (i.e if more data is added) and if the user clicks on the trends tab.

Additional context

No response

Code of Conduct