diff --git a/apps/groceries/groceries.html b/apps/groceries/groceries.html index 9da8b0e6b..0f29817ab 100644 --- a/apps/groceries/groceries.html +++ b/apps/groceries/groceries.html @@ -126,8 +126,12 @@ function updateSettings() { require("Storage").writeJSON(filename, settings); Bangle.buzz(); } +function twoChat(n){ + if(n<10) return '0'+n; + return ''+n; +} const mainMenu = settings.products.reduce(function(m, p, i){ - const name = '( '+p.quantity+' ) '+p.name; + const name = twoChat(p.quantity)+' '+p.name; m[name] = { value: p.ok, format: v => v?'[x]':'[ ]',