vuestorefront/checkout-com

error handling in useCko.ts

CheStas opened this issue · 0 comments

inside every method in useCko, an error is assigned directly to error.value.
it means if, for example, we call initCardForm and an error is returned, and we call another method that does not return an error, the error is still in error.value and will be handled as the error for the second successfully completed method.

impact

wrong error messages, makes error handling difficult