Fix build errors
I always forget something
This commit is contained in:
parent
65da50aa88
commit
b67961b2a3
2 changed files with 7 additions and 2 deletions
|
|
@ -69,7 +69,9 @@ const SignupModal = (props: Props) => {
|
||||||
accountState.account.authorized = true
|
accountState.account.authorized = true
|
||||||
accountState.account.user = {
|
accountState.account.user = {
|
||||||
id: response.data.user.id,
|
id: response.data.user.id,
|
||||||
username: response.data.user.username
|
username: response.data.user.username,
|
||||||
|
picture: 'gran',
|
||||||
|
element: 'water'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close the modal
|
// Close the modal
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,12 @@ function MyApp({ Component, pageProps }: AppProps) {
|
||||||
console.log(`Logged in as user "${cookies.user.username}"`)
|
console.log(`Logged in as user "${cookies.user.username}"`)
|
||||||
|
|
||||||
accountState.account.authorized = true
|
accountState.account.authorized = true
|
||||||
|
accountState.account.language = cookies.user.language
|
||||||
accountState.account.user = {
|
accountState.account.user = {
|
||||||
id: cookies.user.user_id,
|
id: cookies.user.user_id,
|
||||||
username: cookies.user.username
|
username: cookies.user.username,
|
||||||
|
picture: cookies.user.picture,
|
||||||
|
element: cookies.user.element
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(`You are not currently logged in.`)
|
console.log(`You are not currently logged in.`)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue