Hi, I’m doing a relatively straightforward calculation of some database fields - I’m getting the expected results on localhost but when I upload to the remote server it is concatenating instead of summing.
Are you sure these values are returned as numbers and not as strings? If they are concatenated then most probably they are strings and you need to use the to number formatter for them.
You can check if they are strings or numbers in the dev tools > network > XHR and check the server action results.
They are all set to INT in the database and the calculation works fine locally (result: 39855) - it’s just weird why it doesn’t work remotely (result: 55539300).