diff --git a/front/models/User.ts b/front/models/User.ts index aaf5e28..c7b5a94 100644 --- a/front/models/User.ts +++ b/front/models/User.ts @@ -3,7 +3,7 @@ import Model from "./Model"; import UserSettings from "./UserSettings"; interface User extends Model { - name: string; + username: string; email: string; xp: number; premium: boolean; diff --git a/front/views/HomeView.tsx b/front/views/HomeView.tsx index f621af5..26a9ed0 100644 --- a/front/views/HomeView.tsx +++ b/front/views/HomeView.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from "react"; +import React from "react"; import { useQueries, useQuery } from "react-query"; import API from "../API"; import LoadingComponent from "../components/Loading"; @@ -43,10 +43,11 @@ const HomeView = () => { } + console.log(userQuery.data); return - {`${translate('welcome')} ${userQuery.data.name}!`} + {`${translate('welcome')} ${userQuery.data.username}!`}