diff --git a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.kt b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.kt index 3175f6243b..886a4f6b2a 100644 --- a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.kt +++ b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.kt @@ -89,8 +89,7 @@ class CommandQueue @Inject constructor( override fun run() { if (!result.success) { ErrorHelperActivity.runAlarm(context, result.comment, rh.gs(R.string.failedupdatebasalprofile), R.raw.boluserror) - } - if (result.enacted) { + } else { repository.createEffectiveProfileSwitch( EffectiveProfileSwitch( timestamp = dateUtil.now(),