6.18.0: Улучшения диалога товара и кнопки прогрессии
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m13s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m13s
This commit is contained in:
@@ -196,7 +196,8 @@ function ShoppingItemDetail({ itemId, onClose, onRefresh, onItemCompleted, onNav
|
||||
type="button"
|
||||
className="progression-control-btn progression-control-plus"
|
||||
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())
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user