GM panel UI improvements, added accordion component, worked on sprite logics, updated types, npm update
This commit is contained in:
@ -67,6 +67,7 @@ async function loginFunc() {
|
||||
|
||||
gameStore.setToken(response.token)
|
||||
gameStore.initConnection()
|
||||
return true // Indicate success
|
||||
}
|
||||
|
||||
async function registerFunc() {
|
||||
@ -84,6 +85,9 @@ async function registerFunc() {
|
||||
return
|
||||
}
|
||||
|
||||
await loginFunc()
|
||||
const loginSuccess = await loginFunc()
|
||||
if (!loginSuccess) {
|
||||
notifications.addNotification({ message: 'Login after registration failed. Please try logging in manually.' })
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user