We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c3bc7e commit f7d3f33Copy full SHA for f7d3f33
oura-library/src/main/kotlin/org/radarbase/oura/user/OuraUser.kt
@@ -23,5 +23,5 @@ data class OuraUser(
23
override val observationKey: ObservationKey = ObservationKey(projectId, userId, sourceId)
24
override val versionedId: String = "$id${version?.let { "#$it" } ?: ""}"
25
26
- fun isComplete() = isAuthorized && startDate.isBefore(endDate) && serviceUserId != null
+ fun isComplete() = isAuthorized && (endDate == null || startDate.isBefore(endDate)) && serviceUserId != null
27
}
0 commit comments