This commit is contained in:
&Cherry 2024-05-03 11:00:45 +01:00 committed by GitHub
commit 1413a3e324
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

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);