diff --git a/src/App.vue b/src/App.vue index 17ea38d..56321f2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,12 +17,16 @@ const screen:Ref = ref('login'); const socket = useSocketStore(); socket.$subscribe((mutation, state) => { - if (state.isAuthenticated) { - screen.value = 'character_selection'; + if (!state.isAuthenticated) { + screen.value = 'login'; } - if (state.character) { - screen.value = 'game'; + if (state.isAuthenticated){ + screen.value = 'characters'; + + if (state.character) { + screen.value = 'game'; + } } }, { detached: true }) \ No newline at end of file