diff --git a/client/src/Components/HostedEvent/Event.js b/client/src/Components/HostedEvent/Event.js index 4f913c969..2119f2075 100644 --- a/client/src/Components/HostedEvent/Event.js +++ b/client/src/Components/HostedEvent/Event.js @@ -44,7 +44,7 @@ class Event extends React.Component { designator, startDatetime, finishDatetime, - hostId, + host, description } = this.props.event return ( @@ -56,7 +56,7 @@ class Event extends React.Component { To : {finishDatetime} - Hosted by: {hostId} + Hosted by: {host.alias} ({host.lastName} {host.firstName}) Formula: First prize: diff --git a/client/src/Components/HostedEvent/graphql.js b/client/src/Components/HostedEvent/graphql.js index 2c1c73859..ac617d6a3 100644 --- a/client/src/Components/HostedEvent/graphql.js +++ b/client/src/Components/HostedEvent/graphql.js @@ -5,7 +5,11 @@ const fragments = ` designator startDatetime finishDatetime - hostId + host { + alias + firstName + lastName + } description `