Skip to content

Commit

Permalink
chore: melos fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimozkn committed Jan 24, 2025
1 parent 99134a7 commit 854f687
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/lib/util/fitbit_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,12 @@ class FitbitHandler {

if (data.type.toLowerCase() != typeLower) continue;

final DateTime? date = switch (type) {
final DateTime date = switch (type) {
FitbitQuestionType.sleep => (data as FitbitSleepData).entryDateTime,
_ => data.dateTime,
};

if (date != null &&
(latestDate == null || date.isAfter(latestDate))) {
if (latestDate == null || date.isAfter(latestDate)) {
latestDate = date;
}
}
Expand Down

0 comments on commit 854f687

Please sign in to comment.