When hitting the checkout process before the vuex cart/UPD_TOTALS mutation has been called (e.g. seconds after adding the first product) the following error appears:
I suggest to refer to grandTotal directly by using a computed property. I was not sure how to handle the fallback value which is 0 now. Probably this will require additional validation depending on the checkout process but it shouldn't either be possible to access it with no products in cart...
When hitting the checkout process before the vuex cart/UPD_TOTALS mutation has been called (e.g. seconds after adding the first product) the following error appears:
I suggest to refer to grandTotal directly by using a computed property. I was not sure how to handle the fallback value which is 0 now. Probably this will require additional validation depending on the checkout process but it shouldn't either be possible to access it with no products in cart...