diff --git a/frontend/src/views/RecipeManager.vue b/frontend/src/views/RecipeManager.vue index 1bf4969..65f9205 100644 --- a/frontend/src/views/RecipeManager.vue +++ b/frontend/src/views/RecipeManager.vue @@ -456,10 +456,14 @@ const formDilution = ref(6) const formCocoRow = ref(null) -watch(() => formVolume.value, (vol) => { +watch(() => formVolume.value, (vol, oldVol) => { if (vol && !formCocoRow.value && parsedCurrentIndex.value < 0) { formCocoRow.value = { oil: '椰子油', drops: vol === 'single' ? 10 : 0, _search: '椰子油', _open: false } } + // Switching to single: reset coconut drops if they're too large (leftover from fill mode) + if (vol === 'single' && formCocoRow.value && formCocoRow.value.drops > 30) { + formCocoRow.value.drops = 10 + } }) // EO ingredients (everything except coconut)