Skipped creation of "dummy cancel temp basal" records for temp basals which are already paired with real cancels

This commit is contained in:
Yury Pshenichny 2023-05-22 18:09:05 +03:00
parent 7faa34aa50
commit a76d2f97e2

View file

@ -796,7 +796,7 @@ class MedtronicHistoryData @Inject constructor(
previousItem = null
}
if (tempBasalProcessDTO.itemOneTbr!!.isZeroTBR) {
if (tempBasalProcessDTO.itemOneTbr!!.isZeroTBR && tempBasalProcessDTO.itemTwo == null ) {
previousItem = tempBasalProcessDTO
}
}