Open bitgroestl opened 4 months ago
It seems this useEffect
fires, when the page loads. It shouldn't and I couldn't see why it did.
https://github.com/spliit-app/spliit/blob/5dfe03b3f11e16e16355e65ef092da77715b4bd1/src/components/expense-form.tsx#L254C1-L261C4
This bug actually messed up our reimbursements! 😅 (we didn't read carefully enough.) I think a fix here would be important! Cheers :)
I think this was resolved with #210
How to reproduce
Problem
After following the steps above, all users are selected in the "Paid for" section.
Expectation
Only one user should be selected (the one who we want to reimburse)
Possible cause
I'd guess the cause lies somewhere below here. I might be wrong though, since i don't have any TypeScript experience.