bcgov / cas-cif

CleanBC Industry Fund project
Apache License 2.0
6 stars 2 forks source link

Viewing contacts page when there are no contacts throws error [6] #1868

Open BCerki opened 9 months ago

BCerki commented 9 months ago

Describe the Bug:

When a project doesn't have contacts, if a user tries to view the contacts page, they receive an error. If there are no contacts, a user should see a message that there are no contacts (FormNotAddedOrUpdated component), so the bug is probably caused by some incorrect conditionality in the app/components/Form/ProjectContactFormSummary.tsx component.

Probability (how likely the bug is to happen, scored from 1-5): 3 (For example, probability of 5 is something like "it happens to all users every time they log in." Probability of 1 "only happens to certain users when a really specific and unlikely path is followed.")

Effect (how bad the bug is when it does happen, scored from 1-5): 3 (For example, effect of 5 is "the entire app crashes and makes it unusable for all users" or "the bug causes the wrong data to be saved, with critical information (e.g. payment) being affected." Effect of 1 is "It makes some styling look a little bit weird.")

Steps to reproduce the behaviour:

Screenshots: https://www.loom.com/share/ba1b30465b9f4c838477be4e96f6fb75

Additional information: