Tidying
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
<script setup>
|
||||
|
||||
|
||||
import axios from "axios";
|
||||
|
||||
const dataStore = useDataStore()
|
||||
const route = useRoute()
|
||||
const supabase = useSupabaseClient()
|
||||
@@ -14,8 +10,6 @@ const bankData = ref({})
|
||||
const showAlert = ref(false)
|
||||
const reqData = ref({})
|
||||
|
||||
const axiosBaseUrl = "https://backend.fedeo.de"
|
||||
|
||||
const setupPage = async () => {
|
||||
if(route.query.ref) {
|
||||
const {data,error} = await supabase.functions.invoke(`bankstatement_gateway`,{
|
||||
@@ -32,7 +26,6 @@ const setupPage = async () => {
|
||||
}
|
||||
|
||||
const checkBIC = async () => {
|
||||
|
||||
const {data,error} = await supabase.functions.invoke(`bankstatement_gateway`,{
|
||||
body: {
|
||||
bic: bicBankToAdd.value,
|
||||
@@ -40,9 +33,6 @@ const checkBIC = async () => {
|
||||
}
|
||||
})
|
||||
|
||||
console.log(data)
|
||||
console.log(error)
|
||||
|
||||
bankData.value = data
|
||||
showAlert.value = true
|
||||
}
|
||||
@@ -68,7 +58,6 @@ const generateLink = async () => {
|
||||
}
|
||||
|
||||
const addAccount = async (account) => {
|
||||
|
||||
let accountData = {
|
||||
accountId: account.id,
|
||||
ownerName: account.owner_name,
|
||||
@@ -83,12 +72,8 @@ const addAccount = async (account) => {
|
||||
} else if(data) {
|
||||
toast.add({title: "Account erfolgreich hinzugefügt"})
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
setupPage()
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user