1
0

Fix some small things (#658)

This commit is contained in:
Geometrically
2023-08-23 11:03:09 -04:00
committed by GitHub
parent 1eb8998296
commit 2fad02df23
12 changed files with 34 additions and 53 deletions

View File

@@ -14,8 +14,6 @@ import {
login_2fa,
create_account,
login_pass,
get as getCreds,
login_minecraft,
} from '@/helpers/mr_auth.js'
import { handleError, useNotifications } from '@/store/state.js'
import { onMounted, ref } from 'vue'
@@ -33,10 +31,6 @@ const props = defineProps({
type: Boolean,
required: true,
},
flow: {
type: String,
default: null,
},
})
const loggingIn = ref(true)
@@ -118,15 +112,6 @@ async function createAccount() {
}
async function goToNextPage() {
const creds = await getCreds().catch(handleError)
if (!creds) {
try {
await login_minecraft(props.flow)
} catch {
/* empty */
}
}
props.nextPage()
}