@eric-emg/symphiq-components 1.2.450 → 1.2.451

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.
@@ -88238,12 +88238,10 @@ class ProfileQuestionAnswerComponent {
88238
88238
  }
88239
88239
  }, ...(ngDevMode ? [{ debugName: "breadcrumbPath" }] : []));
88240
88240
  this.unansweredQuestions = computed(() => {
88241
- const answers = this.profileAnswers();
88242
- return this.filteredQuestions().filter(q => !answers.some(a => a.profileQuestionId === q.id));
88241
+ return this.filteredQuestions().filter(q => q.answered !== true);
88243
88242
  }, ...(ngDevMode ? [{ debugName: "unansweredQuestions" }] : []));
88244
88243
  this.answeredCount = computed(() => {
88245
- const answers = this.profileAnswers();
88246
- return this.filteredQuestions().filter(q => answers.some(a => a.profileQuestionId === q.id)).length;
88244
+ return this.filteredQuestions().filter(q => q.answered === true).length;
88247
88245
  }, ...(ngDevMode ? [{ debugName: "answeredCount" }] : []));
88248
88246
  this.totalCount = computed(() => {
88249
88247
  return this.filteredQuestions().length;
@@ -89153,15 +89151,9 @@ class ProfileQuestionCardComponent {
89153
89151
  const allUsers = this.users();
89154
89152
  if (!q.id || !answers)
89155
89153
  return [];
89156
- const matched = answers.filter(a => a.profileQuestionId === q.id);
89157
- if (matched.length > 0) {
89158
- console.log('[ProfileQuestionCard] user lookup:', {
89159
- usersCount: allUsers.length,
89160
- userIds: allUsers.map(u => u.id),
89161
- creatorUserIds: matched.map(a => a.creatorUserId)
89162
- });
89163
- }
89164
- return matched.map(answer => ({
89154
+ return answers
89155
+ .filter(a => a.profileQuestionId === q.id)
89156
+ .map(answer => ({
89165
89157
  answer,
89166
89158
  user: allUsers.find(u => u.id === answer.creatorUserId)
89167
89159
  }));