From 5d58d15b29e088102019e2f20287dc61e63980cd Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Mon, 21 Jul 2025 09:49:23 +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 9ab744d..9ad9ed3 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 ?? "-"}

-
*/} +

Provider Type