This commit is contained in:
&Cherry 2025-04-14 18:46:28 +01:00 committed by GitHub
commit f6d8c5b1c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
src/core/Ingredient.mjs Executable file → Normal file
View file

@ -116,6 +116,8 @@ class Ingredient {
}
case "number":
if (data === null) return data;
if (isNaN(data)) throw "Ingredient can not be empty.";
number = parseFloat(data);
if (isNaN(number)) {
const sample = Utils.truncate(data.toString(), 10);