Fixed deprecated API request
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
03223f9391
commit
f4346bbac6
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue