[Vuejs]-Problems loading liquid in Javascript

0đź‘Ť

You’re using money filter which most likely will give you a string like “$50” or something like that. Then you use this value in your calculations, ((productPrice / 4) / 100 ).toFixed(2), which will give you NaN for sure.

Don’t use money filter or don’t forget to remove $ and any other signs for the value you get.

Leave a comment