dcgtc / dgrants

Decentralized Grant platform that implements quadratic funding.
GNU Affero General Public License v3.0
83 stars 39 forks source link

bug: Error when reloading the cart `Cannot read properties of undefined (reading 'grants')` #577

Closed gdixon closed 2 years ago

gdixon commented 2 years ago

Describe the bug

If the user adds Grants ~which are both in a round and not in a round~ to their cart and then refreshes the page, they will see the following error:

Cannot read properties of undefined (reading 'grants')

To Reproduce

Expected behavior

The cart should load without throwing any errors

Screenshots

Screenshot 2021-12-08 at 02 12 50