improve Donnation component and fix string format for the value in the wallet
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user