From e729dea4258c9466eb1fe4af3713cdf03ba6f4c5 Mon Sep 17 00:00:00 2001 From: vildemv <vildemv@ntnu.no> Date: Mon, 29 Apr 2024 10:44:16 +0200 Subject: [PATCH] Fixed bank account logic --- src/components/profile/BankAccountInfo.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/profile/BankAccountInfo.vue b/src/components/profile/BankAccountInfo.vue index 5d7e7c0..c4d86cc 100644 --- a/src/components/profile/BankAccountInfo.vue +++ b/src/components/profile/BankAccountInfo.vue @@ -36,8 +36,7 @@ const fetchUserInfo = async () =>{ const fetchAccountInfo = async () => { const response = await getUserAccountInfo(token); - console.log('account info') - console.log(response) + accounts.value = []; for(let i = 0; i < response.length; i++){ console.log(response[i].accountNumber) accounts.value.push(response[i].accountNumber) -- GitLab