Fix carb entry bug, Issue 2307 #557
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Fix for Loop Issue 2307.
Method
I asked for help on solving this and got a suggestion from @bjorkert (thanks).
Once the file that needed to be modified was identified, I checked the status of that file in the
tidepool-merge
branch,LoopKit/LoopKitUI/CarbKit/CarbQuantityRow.swift
tidepool-merge
versiontidepool-merge
versionminAllowedCarbEntry
of 1.0 (instead of using hard-coded 1.0) and required the entry be >=minAllowedCarbEntry
before the continue button is enabledI'm happy to modify this as desired.
Test
This fixes the reported bug: