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 ?? "-"}
-Provider Type