Skip to content

Commit

Permalink
🐞 fix: update condition for displaying Supervisor component in dashbo…
Browse files Browse the repository at this point in the history
…ard (#164)

Co-authored-by: Tade Strehk <[email protected]>
  • Loading branch information
Strehk and Tade Strehk authored Dec 23, 2024
1 parent dbc6180 commit 45e0959
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<ApplicationRejected />
{/if}
{:else if conferenceQueryData?.findUniqueConferenceSupervisor}
{#if conference!.state !== 'PARTICIPANT_REGISTRATION' && conferenceQueryData.findUniqueConferenceSupervisor.delegations.filter((x) => !!x.assignedNation || !!x.assignedNonStateActor).length > 0}
{#if conference!.state === 'PARTICIPANT_REGISTRATION' || conferenceQueryData.findUniqueConferenceSupervisor.delegations.filter((x) => !!x.assignedNation || !!x.assignedNonStateActor).length > 0}
<Supervisor data={{ ...conferenceQueryData, user: data.user }} />
{:else}
<ApplicationRejected />
Expand Down

0 comments on commit 45e0959

Please sign in to comment.