fixed mathjs evualte function issue..

This commit is contained in:
Cüneyt Şentürk 2025-02-05 00:36:19 +00:00
parent 6e3b1e8055
commit fa83ee7bc3
1 changed files with 1 additions and 1 deletions

View File

@ -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