Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/api-client/src/entities/brand/demographic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const builder = ({ name, value, parent }) => {
// force an empty array for non-choice demographics.
// the Omeda API returns an array with a single value object, containing
// an Id of 0 (which is invalid)
if (![1, 2].includes(parent.DemographicType)) return [];
// also include boolean values (type 5) since these also use value IDs
if (![1, 2, 5].includes(parent.DemographicType)) return [];
return asArray(value).map((obj) => new DemographicValue(obj));
}
return null;
Expand Down
Loading