From 10f0d71f35d8f823007b557cdb1c1fb9cf719799 Mon Sep 17 00:00:00 2001
From: wayanrivan
Date: Mon, 21 Jul 2025 09:48:42 +0700
Subject: [PATCH] update
---
.../blocks/DetailTransaction.tsx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/pages/transaction/history-transaction/blocks/DetailTransaction.tsx b/src/pages/transaction/history-transaction/blocks/DetailTransaction.tsx
index 9ad9ed3..9ab744d 100644
--- a/src/pages/transaction/history-transaction/blocks/DetailTransaction.tsx
+++ b/src/pages/transaction/history-transaction/blocks/DetailTransaction.tsx
@@ -49,13 +49,13 @@ const DetailTransaction = () => {
const response = await GetData(`${API_URL}/transaction/history/detail/${selectedTransactionId}`, {
id: selectedTransactionId
});
- // setTransactionDetails(response?.data);
- if (response?.data.result_edtl) {
- setTransactionDetails(response?.data.detail)
- setEdtl(response?.data.result_edtl.data)
- } else {
- setTransactionDetails(response?.data)
- }
+ setTransactionDetails(response?.data);
+ // if (response?.data.result_edtl) {
+ // setTransactionDetails(response?.data.detail)
+ // setEdtl(response?.data.result_edtl.data)
+ // } else {
+ // setTransactionDetails(response?.data)
+ // }
// console.log(response?.data.result_edtl.data);
// console.log(selectedTransactionId);
} catch (error) {
@@ -305,7 +305,7 @@ const DetailTransaction = () => {
-
+ {/*
Token KWh EDTL
{edtl.tokenDec ?? "-"}
@@ -334,7 +334,7 @@ const DetailTransaction = () => {
{edtl.customerAddr ?? "-"}
-
+
*/}