Merged with main + small fix
This commit is contained in:
@@ -55,7 +55,7 @@ const userStore = useUserStore();
|
||||
const router = useRouter();
|
||||
|
||||
const userTransactions = ref([]);
|
||||
const totalBalance = ref(0);
|
||||
const totalBalance = ref("");
|
||||
const isModalOpen = ref(false);
|
||||
|
||||
const formattedTransactions = computed(() => {
|
||||
@@ -77,8 +77,8 @@ const transactionCount = computed(() => userTransactions.value.length);
|
||||
onBeforeMount(async () => {
|
||||
try {
|
||||
const myUser = await userStore.getCurrentUser(client);
|
||||
userTransactions.value = myUser.data.userTransactions;
|
||||
totalBalance.value = myUser.data.totalBalance;
|
||||
userTransactions.value = myUser.userTransactions;
|
||||
totalBalance.value = myUser.totalBalance;
|
||||
} catch (error) {
|
||||
navigateToHome();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user