From 7822445b6aa7ef6da3f37237e13f0d92d57a155a Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sun, 16 Jun 2024 17:52:10 +0100 Subject: [PATCH] promenu: fix values going below minimum --- apps/promenu/bootb2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/promenu/bootb2.ts b/apps/promenu/bootb2.ts index f97a01348..9342d2ec9 100644 --- a/apps/promenu/bootb2.ts +++ b/apps/promenu/bootb2.ts @@ -140,7 +140,7 @@ E.showMenu = (items?: Menu): MenuInstance => { item.value += (-dir||1) * (item.step||1); - if (item.min && item.value < item.min) + if ("min" in item && item.value < item.min) item.value = item.wrap ? item.max as number : item.min; if ("max" in item && item.value > item.max)