okTurtles / group-income

A decentralized and private (end-to-end encrypted) financial safety net for you and your friends.
https://groupincome.org
GNU Affero General Public License v3.0
329 stars 43 forks source link

Make sure at least one non-monetary is required in 'Contributions' page. #2313

Closed SebinSong closed 3 weeks ago

SebinSong commented 1 month ago

Problem

As of #2292 , At least one non-monetary contribution is required for non-pledging group members. But this is not implemented in 'Contributions' page yet, and non-pledgers can remove all their non-monetary contributions there.

image

Solution

When there is only one non-monetary contribution, hide that remove button and display a sentence informing at least one item is required.