Skip to content

Commit

Permalink
Fix instanceReceiver not hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
bjosttveit committed Feb 23, 2023
1 parent 8ce6488 commit f3e7a51
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ export function InstanceInformationComponent({ elements }: PropsFromGenericCompo
`${instanceOwnerParty.ssn ? instanceOwnerParty.ssn : instanceOwnerParty.orgNumber}-${instanceOwnerParty.name}`;

const instanceReceiver =
receiver !== false && allOrgs && instance && allOrgs[instance?.org] && language
? allOrgs[instance.org].name[userLanguage]
: 'Error: Receiver org not found';
receiver !== false
? allOrgs && instance && allOrgs[instance?.org] && language
? allOrgs[instance.org].name[userLanguage]
: 'Error: Receiver org not found'
: undefined;

const instanceReferenceNumber = referenceNumber !== false && instance && instance.id.split('/')[1].split('-')[4];

Expand Down

0 comments on commit f3e7a51

Please sign in to comment.