Fixed deprecated API request
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominic Grimm 2022-03-03 18:51:41 +01:00
parent 03223f9391
commit f4346bbac6
2 changed files with 4 additions and 4 deletions

View file

@ -14,8 +14,8 @@ export enum UserRole {
}
export interface User extends Node {
firstname: string;
lastname: string;
firstName: string;
lastName: string;
name: string;
username: string;
email: string;

View file

@ -30,7 +30,7 @@
const meStore = operationStore<Data>(gql`
query Me {
me {
firstname
firstName
role
admin
student {
@ -129,7 +129,7 @@
{:else if $meStore.fetching}
<p>Laden...</p>
{:else}
<h1>Hey {$meStore.data.me.firstname}!</h1>
<h1>Hey {$meStore.data.me.firstName}!</h1>
<hr />
{#if $meStore.data.me.role === UserRole.TEACHER}