From fe2883608c683a54502fad76b83e6ad24bbc62f3 Mon Sep 17 00:00:00 2001 From: AG Date: Mon, 24 Nov 2025 23:31:43 +0200 Subject: [PATCH] 1. No dropping user's bodyweight to the default value after a session based on a plan. 2. dev.db to .gitignore. --- .gitignore | 1 + components/Tracker.tsx | 2 +- server/prisma/dev.db | Bin 61440 -> 61440 bytes 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3c3bbbb..2fb4d1f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ dist dist-ssr *.local *.db +server/prisma/dev.db # Editor directories and files .vscode/* diff --git a/components/Tracker.tsx b/components/Tracker.tsx index 37296f6..6db25ad 100644 --- a/components/Tracker.tsx +++ b/components/Tracker.tsx @@ -148,7 +148,7 @@ const Tracker: React.FC = ({ userId, userWeight, activeSession, ac const confirmPlanStart = () => { if (showPlanPrep) { - onSessionStart(showPlanPrep); + onSessionStart(showPlanPrep, parseFloat(userBodyWeight)); setShowPlanPrep(null); } } diff --git a/server/prisma/dev.db b/server/prisma/dev.db index 2911abf32e2862131673ab52fc2cfd575370ad2b..90f280a7f2f407107f4cb7a4a5426d798fdc7887 100644 GIT binary patch delta 299 zcmZp8z})bFd4e=!)q1<741k&cA@)fsb#qK*2v=gGMnn z&d^X+Rz`+UQwz)FR1@>06kP*Lb0b}oq2Th73@oPPljJ8c#y_{TeWLoL6E z!c)dsi*>d9LtqwCjXwLGC99qU3&pzJL9bF3%o1bVtAl(NtVeLrYV-@ zx+ccS7P=-WmPxuv7Kur^lb6>eGtQjMU2i(MvR+nfoBJ)G&TVDu+#1CgIU&Y|noiy^ zUxm{!EiuL1ASG3I@`Cyl9wz=a2L3kw>-_8aA8i(BP~qn@)U`B9Gtf;nO4VQvWdylJ SffvNWWwU{W(dM@PsssR*I!