update
This commit is contained in:
@ -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 = () => {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* <div>
|
||||
<div>
|
||||
<p className="text-sm text-gray-500">Token KWh EDTL </p>
|
||||
<p className="font-medium">
|
||||
{edtl.tokenDec ?? "-"}
|
||||
@ -334,7 +334,7 @@ const DetailTransaction = () => {
|
||||
<p className="font-medium">
|
||||
{edtl.customerAddr ?? "-"}
|
||||
</p>
|
||||
</div> */}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p className="text-sm text-gray-500">Provider Type</p>
|
||||
|
||||
Reference in New Issue
Block a user