oss-apps / split-pro

Open source alternative to Splitwise
https://splitpro.app
GNU Affero General Public License v3.0
127 stars 10 forks source link

Can't add expense to an empty group #49

Closed mjneff2 closed 1 month ago

mjneff2 commented 2 months ago

One would expect to be able to add expenses to a group even before others have joined. Currently, you can't save an expense to a group that only includes you. This is presumably due to using participants.length === 1 as a conditional for some of this logic in AddExpensePage.tsx

Additionally, the "You can only have one group at a time" error message is a bit confusing. Showing red error text makes it seem like I'm currently in a bad state, even though that's not the case when I have one group added.

KMKoushik commented 2 months ago

Thank you for raising this. Will fix them by this weekend!

KMKoushik commented 1 month ago

@mjneff2 This issue is fixed, but Adding expense to an empty group does nothing. It will just be in activity but since you paid and you owe the full amount it won't affect the balances!

Will let you know once it's live

KMKoushik commented 1 month ago

@mjneff2 Released btw.