Initially set previousToday24HoursSleep to nil. The app will now use yesterday24HoursSleep + today24HoursSleep for the original smart suggestion calculation, then use today48HoursSleep + today24HoursSleep - previousToday24HoursSleep for subsequent calculations.
This fixes the issue where the app acted as if yesterday's sleep in past 24 value was always 7.
Initially set
previousToday24HoursSleep
tonil
. The app will now useyesterday24HoursSleep + today24HoursSleep
for the original smart suggestion calculation, then usetoday48HoursSleep + today24HoursSleep - previousToday24HoursSleep
for subsequent calculations.This fixes the issue where the app acted as if yesterday's sleep in past 24 value was always 7.