( at: Date, now: Date, timezone?: string, )
| 96 | // it arrives. Only a view from the same local day lands on the day it was |
| 97 | // read, so anything older is dropped instead of sent. |
| 98 | export const isStreakViewCreditable = ( |
| 99 | at: Date, |
| 100 | now: Date, |
| 101 | timezone?: string, |
| 102 | ): boolean => isSameDayInTimezone(at, now, timezone); |
| 103 | |
| 104 | interface DrainStreakViewQueueProps { |
| 105 | userId: string; |
no test coverage detected