iffy-pi / apple-shortcuts

A repository for handling the updates and versioning of my apple shortcuts
https://iffy-pi.github.io/apple-shortcuts/
2 stars 0 forks source link

Nutrition - Resolving bug in Make Presets when checking Preset name against other preset names #28

Closed iffy-pi closed 9 months ago

iffy-pi commented 9 months ago

When it occurs: Issue occurs when selecting a name for a new preset. The selected name is checked against the set of presetNames in a loop to make sure that user selects a unique name. The loop breaks when breakLoop is set to true, however breakLoop also controls the main preset maker loop. Hence, when a user selects a unique name the shortcut makes the preset and exits immediately, instead of returning back to the menu to allow users to select foods.