Skip to content

Commit

Permalink
Show "No" values on event pages
Browse files Browse the repository at this point in the history
"No" (i.e. a "false" response to a boolean form item) should be shown
on an event page, since it's a valid, non-blank response to that
question.  However, because it's falsy, it's being hidden right now.
This fixes that.
  • Loading branch information
nbudin committed Dec 6, 2024
1 parent 47ce283 commit a41e9c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getSectionizedFormItems(formData: EventPageForm, formResponse: Record<s
item.identifier !== 'title' &&
item.public_description != null &&
item.public_description.trim().length > 0 &&
formResponse[item.identifier],
(formResponse[item.identifier] || formResponse[item.identifier] === false),
);
const shortFormItems: TypedFormItem[] = [];
const secretFormItems: TypedFormItem[] = [];
Expand Down

0 comments on commit a41e9c9

Please sign in to comment.