Showing
1 changed file
with
7 additions
and
1 deletions
| @@ -370,7 +370,13 @@ class TodayController extends GetMaterialController { | @@ -370,7 +370,13 @@ class TodayController extends GetMaterialController { | ||
| 370 | if (result.status == 1) { | 370 | if (result.status == 1) { |
| 371 | _calculateHealthDataWithoutLoading( | 371 | _calculateHealthDataWithoutLoading( |
| 372 | uploaded: () async { | 372 | uploaded: () async { |
| 373 | - showHealthDataAuthCardStatus.value = result.status; | 373 | + if (DateUtils.isSameDay( |
| 374 | + selectedDate.value, lastSelectableDay.value) && | ||
| 375 | + hrvChartData.isEmpty) { | ||
| 376 | + showHealthDataAuthCardStatus.value = -1; | ||
| 377 | + } else { | ||
| 378 | + showHealthDataAuthCardStatus.value = result.status; | ||
| 379 | + } | ||
| 374 | }, | 380 | }, |
| 375 | isPullToRefresh: isPullToRefresh, | 381 | isPullToRefresh: isPullToRefresh, |
| 376 | ); | 382 | ); |
-
Please register or login to post a comment