diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt index d8a42eff34..2a69c98501 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistory.kt @@ -51,7 +51,7 @@ class DashHistory @Inject constructor( resolvedAt: Long? = null ): Single = Single.defer { var id: Long = 0 - if (dao.first() != null) { + if (dao.first() == null) { id = currentTimeMillis() } when {