improve Donnation component and fix string format for the value in the wallet

This commit is contained in:
Dominic Villemure
2024-08-25 14:59:04 -04:00
parent ddee8cd848
commit c14a2fa8e9
2 changed files with 24 additions and 13 deletions

View File

@@ -64,11 +64,8 @@ const formattedTransactions = computed(() => {
});
const formattedBalance = computed(() => {
const balanceStr = totalBalance.value.toString();
const balanceParts = balanceStr.split(".");
const integerPart = balanceParts[0]
const decimalPart = balanceParts[1]
return integerPart + ',' + decimalPart + ' $';
const balance = totalBalance.value.toString();
return `${balance} $`
});
const transactionCount = computed(() => userTransactions.value.length);