When saving a loan for the first time, the loan does not yet exist in the authStore.userLoans store, but multiple bits of code tries to access it from there...
[x] Unsaved computed property
[x] SaveLoan function
[x] Also, remember to add the loan to the authStore.userLoans array after saving it, or re-fetch the users loans from firebase.
When saving a loan for the first time, the loan does not yet exist in the authStore.userLoans store, but multiple bits of code tries to access it from there...
[x] Unsaved computed property
[x] SaveLoan function
[x] Also, remember to add the loan to the authStore.userLoans array after saving it, or re-fetch the users loans from firebase.