diff --git a/app/pages/bonus-system/[userId].vue b/app/pages/bonus-system/[userId].vue index 9a54ce5..368423a 100644 --- a/app/pages/bonus-system/[userId].vue +++ b/app/pages/bonus-system/[userId].vue @@ -23,19 +23,6 @@ const bonusAccount = computed(() => bonusAccountQuery.result.value?.managerBonus const transactions = computed(() => bonusAccount.value?.transactions ?? []); const pendingWithdrawals = computed(() => bonusAccount.value?.pendingWithdrawals ?? []); -const accountStats = computed(() => { - if (!bonusAccount.value) { - return []; - } - - return [ - { label: 'Всего начислено', value: formatAmount(bonusAccount.value.earnedAmount) }, - { label: 'Транзакций', value: String(bonusAccount.value.transactionsCount) }, - { label: 'Активных связок', value: String(bonusAccount.value.referralsCount) }, - { label: 'На выводе', value: formatAmount(bonusAccount.value.pendingWithdrawalAmount) }, - ]; -}); - function formatAmount(value: number) { return new Intl.NumberFormat('ru-RU', { minimumFractionDigits: 0, @@ -62,17 +49,48 @@ function formatDateTime(value: string) {