Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: allow 0% ABV custom drinks by checking empty string instead of falsy

Adam Eivye21e858313e3
diff --git a/client/src/components/meatspace/tabs/AlcoholTab.jsx b/client/src/components/meatspace/tabs/AlcoholTab.jsx
index c271fa8b43..bc06babc31 100644
--- a/client/src/components/meatspace/tabs/AlcoholTab.jsx
+++ b/client/src/components/meatspace/tabs/AlcoholTab.jsx
@@ -404,7 +404,7 @@ export default function AlcoholTab() {
/>
<button
type="submit"
- disabled={!buttonForm.name || !buttonForm.oz || !buttonForm.abv || isNaN(parseFloat(buttonForm.abv))}
+ disabled={!buttonForm.name || !buttonForm.oz || buttonForm.abv === '' || isNaN(parseFloat(buttonForm.abv))}
className="flex items-center gap-1 px-2 py-1.5 text-xs bg-port-accent text-white rounded-lg hover:bg-port-accent/80 disabled:opacity-50"
>
<Plus size={12} />