@selfcommunity/react-core 0.4.1-alpha.4 → 0.4.1-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -576,7 +576,7 @@ const validateReactions = (value, vote) => {
576
576
  errors.push(errors_1.ValidationError.ERROR_INVALID_VOTE_REACTIONS);
577
577
  }
578
578
  if (Array.isArray(value) && value.length > 0) {
579
- let _validValuesCounts = value.filter((e) => e.id !== null && e.label !== null && e.sentiment && e.image && e.active !== null).length;
579
+ let _validValuesCounts = value.filter((e) => e.id !== null && e.label !== null && e.sentiment !== null && e.image && e.active !== null).length;
580
580
  if (_validValuesCounts < value.length) {
581
581
  errors.push(errors_1.ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE);
582
582
  }
@@ -546,7 +546,7 @@ export const validateReactions = (value, vote) => {
546
546
  errors.push(ValidationError.ERROR_INVALID_VOTE_REACTIONS);
547
547
  }
548
548
  if (Array.isArray(value) && value.length > 0) {
549
- let _validValuesCounts = value.filter((e) => e.id !== null && e.label !== null && e.sentiment && e.image && e.active !== null).length;
549
+ let _validValuesCounts = value.filter((e) => e.id !== null && e.label !== null && e.sentiment !== null && e.image && e.active !== null).length;
550
550
  if (_validValuesCounts < value.length) {
551
551
  errors.push(ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE);
552
552
  }