From 849e74e63b906f66089861b695d2ad203bd12055 Mon Sep 17 00:00:00 2001 From: alireza013013 Date: Mon, 27 Jul 2026 22:05:46 +0330 Subject: [PATCH] fix(pricing): remove unnecessary division for point values in question reward and transaction chart --- app/components/test/TestDetails.vue | 4 ++-- app/components/user/wallet/TransactionChart.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/test/TestDetails.vue b/app/components/test/TestDetails.vue index 73c9483e7..f7864554f 100644 --- a/app/components/test/TestDetails.vue +++ b/app/components/test/TestDetails.vue @@ -317,12 +317,12 @@ const checkAndGetPointQuestion = async () => { }) if (response.succeeded && response.data) { if (response.data?.isCorrect) { - questionReward.value = Math.abs(response.data.points) / 1_000_000 + questionReward.value = Math.abs(response.data.points) directionWalletAniamtion.value = 1 isStartSuccessAnimation.value = true } else { - questionReward.value = Math.abs(response.data.points) / 1_000_000 + questionReward.value = Math.abs(response.data.points) directionWalletAniamtion.value = -1 isStartFailCoinAnimation.value = true } diff --git a/app/components/user/wallet/TransactionChart.vue b/app/components/user/wallet/TransactionChart.vue index bf059e3e8..f52ee2a98 100644 --- a/app/components/user/wallet/TransactionChart.vue +++ b/app/components/user/wallet/TransactionChart.vue @@ -191,8 +191,8 @@ const updateChartWithData = (data: TransactionStatisticDTO[]) => { // Extract labels and values const labels = filteredData.map(item => item.name) - const debitValues = filteredData.map(item => item.debitValue / 1_000_000) - const creditValues = filteredData.map(item => item.creditValue / 1_000_000) + const debitValues = filteredData.map(item => item.debitValue) + const creditValues = filteredData.map(item => item.creditValue) // Calculate max value for Y axis const maxValue = Math.max(