@empoweredvote/ev-ui 0.6.3 → 0.6.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.
package/dist/index.js CHANGED
@@ -2468,7 +2468,7 @@ function CompassCardHorizontal({
2468
2468
  textTransform: "uppercase",
2469
2469
  padding: "6px 0",
2470
2470
  pointerEvents: "none"
2471
- } }, "Running Unopposed")),
2471
+ } }, typeof politician.running_unopposed === "string" ? politician.running_unopposed : "Running Unopposed")),
2472
2472
  /* @__PURE__ */ import_react13.default.createElement("div", { style: { flex: 1, minWidth: 0, padding: spacing[4], paddingLeft: spacing[3] } }, /* @__PURE__ */ import_react13.default.createElement(
2473
2473
  CompassCardHorizontalMeta,
2474
2474
  {
@@ -2818,7 +2818,7 @@ function CompassCardVertical({
2818
2818
  textTransform: "uppercase",
2819
2819
  padding: "6px 0",
2820
2820
  borderRadius: borderRadius.sm
2821
- } }, "Running Unopposed"),
2821
+ } }, typeof politician.running_unopposed === "string" ? politician.running_unopposed : "Running Unopposed"),
2822
2822
  /* @__PURE__ */ import_react14.default.createElement("div", { style: {
2823
2823
  flex: 1,
2824
2824
  padding: spacing[4],
@@ -6150,6 +6150,7 @@ function StanceAccordion({
6150
6150
  const questionText = fullTopic == null ? void 0 : fullTopic.question_text;
6151
6151
  const topicQuotes = quotesCache.current ? quotesCache.current.filter((q) => {
6152
6152
  if (!q.issue) return false;
6153
+ if (q.candidateId && q.candidateId !== politicianId) return false;
6153
6154
  if (topic.topic_key) return q.issue === topic.topic_key;
6154
6155
  return topic.short_title && q.issue.toLowerCase() === topic.short_title.toLowerCase();
6155
6156
  }) : [];