From b8591b79502bc212dffb41cc780d15aff8c1cb32 Mon Sep 17 00:00:00 2001 From: Nikola Bjelo Date: Mon, 29 Oct 2018 17:17:00 +0100 Subject: [PATCH] Using the host name instead of host ID --- client/src/Components/HostedEvent/Event.js | 4 ++-- client/src/Components/HostedEvent/graphql.js | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) 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 `