lint 로직 변경
This commit is contained in:
@@ -12,7 +12,7 @@ onMounted(async () => {
|
||||
try {
|
||||
const me = await trpc.me.query();
|
||||
if (me) {
|
||||
router.push('/lobby');
|
||||
await router.push('/lobby');
|
||||
}
|
||||
} catch (e) {
|
||||
// Not logged in or error
|
||||
|
||||
@@ -24,7 +24,7 @@ onMounted(async () => {
|
||||
try {
|
||||
me.value = await trpc.me.query();
|
||||
if (!me.value) {
|
||||
router.push('/');
|
||||
await router.push('/');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ onMounted(async () => {
|
||||
const handleLogout = async () => {
|
||||
// TODO: Implement logout mutation in gateway-api
|
||||
// await trpc.auth.logout.mutation();
|
||||
router.push('/');
|
||||
await router.push('/');
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user