Fix build errors

I always forget something
This commit is contained in:
Justin Edmund 2022-03-04 05:38:29 -08:00
parent 65da50aa88
commit b67961b2a3
2 changed files with 7 additions and 2 deletions

View file

@ -69,7 +69,9 @@ const SignupModal = (props: Props) => {
accountState.account.authorized = true
accountState.account.user = {
id: response.data.user.id,
username: response.data.user.username
username: response.data.user.username,
picture: 'gran',
element: 'water'
}
// Close the modal

View file

@ -16,9 +16,12 @@ function MyApp({ Component, pageProps }: AppProps) {
console.log(`Logged in as user "${cookies.user.username}"`)
accountState.account.authorized = true
accountState.account.language = cookies.user.language
accountState.account.user = {
id: cookies.user.user_id,
username: cookies.user.username
username: cookies.user.username,
picture: cookies.user.picture,
element: cookies.user.element
}
} else {
console.log(`You are not currently logged in.`)