Skip to content

Commit

Permalink
Merge pull request #109 from virtualidentityag/fix/DIAKONIE-335-missi…
Browse files Browse the repository at this point in the history
…ng-topic-in-profile

fix(asker-profile): show correct agency topic in asker profile
  • Loading branch information
koepferd authored Jun 12, 2024
2 parents 3cf838a + 3c1dfc5 commit dcc8aa4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/profile/AskerConsultingTypeData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ export const AskerConsultingTypeData = () => {
text={
topics.find(
(topic) =>
topic.id === resort.topic
userData.sessions.find(
(session) =>
session.agencyId ===
resort.agency.id
)?.topic.id === topic.id
)?.name || ''
}
semanticLevel="5"
Expand Down
2 changes: 2 additions & 0 deletions src/globalState/interfaces/UserDataInterface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ConsultingTypeInterface } from './ConsultingTypeInterface';
import { TWO_FACTOR_TYPES } from '../../components/twoFactorAuth/TwoFactorAuth';
import { SessionItemInterface } from './SessionsDataInterface';

export interface UserDataInterface {
absenceMessage?: string;
Expand Down Expand Up @@ -30,6 +31,7 @@ export interface UserDataInterface {
termsAndConditionsConfirmation: string;
dataPrivacyConfirmation: string;
emailNotifications?: EmailNotificationsInterface;
sessions: SessionItemInterface[];
}

export interface ConsultantDataInterface
Expand Down

0 comments on commit dcc8aa4

Please sign in to comment.