Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdigdir committed Nov 12, 2024
1 parent 4ecaa86 commit 10ca2d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/Activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Activity = ({ activity, serviceOwner }: ActivityProps) => {
const isCompany =
activity.performedBy.actorType === ActorType.ServiceOwner ||
(activity.performedBy.actorId ?? '').includes('urn:altinn:organization:');
const performedByName = isCompany ? serviceOwner?.name ?? '' : activity.performedBy.actorName ?? '';
const performedByName = isCompany ? (serviceOwner?.name ?? '') : (activity.performedBy.actorName ?? '');
const imageUrl = isCompany ? serviceOwner?.imageURL : undefined;
const text = getActivityText(activity);
const clockPrefix = t('word.clock_prefix');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const PartyDropdown = forwardRef((props: PartyDropdownProps, ref: Ref<Par
<ProfileButton size="xs" onClick={() => setIsMenuOpen(!isMenuOpen)} color="neutral" disabled={!parties.length}>
{allOrganizationsSelected
? t('parties.labels.all_organizations')
: selectedParties?.[0]?.name ?? t('partyDropdown.selectParty')}
: (selectedParties?.[0]?.name ?? t('partyDropdown.selectParty'))}
<ChevronUpDownIcon fontSize="1.25rem" />
</ProfileButton>
<DropdownList isExpanded={isMenuOpen}>
Expand Down

0 comments on commit 10ca2d9

Please sign in to comment.