From 912ae7a85779690416f263d2133a86d7f986122f Mon Sep 17 00:00:00 2001 From: poignatov Date: Sun, 15 Mar 2026 18:14:41 +0300 Subject: [PATCH] =?UTF-8?q?6.18.1:=20=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=D0=B8=D0=BA=D0=B8=20=D0=BC=D0=B8=D0=BD=D1=83=D1=81?= =?UTF-8?q?=D0=B0=20=D0=B2=20=D0=BF=D0=BE=D0=BB=D1=8F=D1=85=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B3=D1=80=D0=B5=D1=81=D1=81=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- play-life-web/package.json | 2 +- play-life-web/src/components/ShoppingItemDetail.jsx | 3 ++- play-life-web/src/components/TaskDetail.jsx | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 1b386a5..2016ec3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.18.0 +6.18.1 diff --git a/play-life-web/package.json b/play-life-web/package.json index cf827ee..d1eaee6 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "6.18.0", + "version": "6.18.1", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/ShoppingItemDetail.jsx b/play-life-web/src/components/ShoppingItemDetail.jsx index 8d1dd9d..6489348 100644 --- a/play-life-web/src/components/ShoppingItemDetail.jsx +++ b/play-life-web/src/components/ShoppingItemDetail.jsx @@ -185,7 +185,8 @@ function ShoppingItemDetail({ itemId, onClose, onRefresh, onItemCompleted, onNav type="button" className="progression-control-btn progression-control-minus" onClick={() => { - const current = parseFloat(volumeValue) || 0 + const base = item.last_volume ?? item.volume_base ?? 1 + const current = volumeValue.trim() ? parseFloat(volumeValue) : base const step = item.volume_base || 1 setVolumeValue((current - step).toString()) }} diff --git a/play-life-web/src/components/TaskDetail.jsx b/play-life-web/src/components/TaskDetail.jsx index 552e4e4..5ae77a2 100644 --- a/play-life-web/src/components/TaskDetail.jsx +++ b/play-life-web/src/components/TaskDetail.jsx @@ -829,7 +829,8 @@ function TaskDetail({ taskId, onClose, onRefresh, onTaskCompleted, onNavigate }) type="button" className="progression-control-btn progression-control-minus" onClick={() => { - const current = parseFloat(progressionValue) || 0 + const base = task.progression_base ?? 1 + const current = progressionValue.trim() ? parseFloat(progressionValue) : base const step = task.progression_base || 1 setProgressionValue((current - step).toString()) }}