Skip to content

Commit

Permalink
use default insulin during initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak committed Nov 9, 2023
1 parent 112d3b5 commit 26024dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class PluginStore @Inject constructor(
get() = activeProfile ?: checkNotNull(activeProfile) { "No profile selected" }

override val activeInsulin: Insulin
get() = activeInsulinStore ?: checkNotNull(activeInsulinStore) { "No insulin selected" }
get() = activeInsulinStore ?: getDefaultPlugin(PluginType.INSULIN) as Insulin

override val activeAPS: APS
get() = activeAPSStore ?: checkNotNull(activeAPSStore) { "No APS selected" }
Expand Down

0 comments on commit 26024dc

Please sign in to comment.