From fa83ee7bc3f2601a602992431719e1e5068e4920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 5 Feb 2025 00:36:19 +0000 Subject: [PATCH] fixed mathjs evualte function issue.. --- resources/assets/js/plugins/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/plugins/functions.js b/resources/assets/js/plugins/functions.js index 18d1645e4..4b858c00a 100644 --- a/resources/assets/js/plugins/functions.js +++ b/resources/assets/js/plugins/functions.js @@ -19,7 +19,7 @@ const { evaluate } = require('mathjs'); // use the evaluate function to evaluate the expression function calculationToQuantity(quantity) { - return evaluate(quantity); + return evaluate(quantity.toString()); } //This function wraps setTimeout function in a promise in order to display dom manipulations on root components asynchronously & fast