From fee3ca728aa5de9642774ba19559563d25975c5f Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Mon, 7 Jul 2025 10:16:53 +0700 Subject: [PATCH] update transaction history in full name customer column --- .../history-transaction/hooks/TransactionContext.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/transaction/history-transaction/hooks/TransactionContext.tsx b/src/pages/transaction/history-transaction/hooks/TransactionContext.tsx index b263725..9e86b40 100644 --- a/src/pages/transaction/history-transaction/hooks/TransactionContext.tsx +++ b/src/pages/transaction/history-transaction/hooks/TransactionContext.tsx @@ -153,10 +153,10 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => { }, { accessorFn: (row) => { - const purchase = row?.purchase?.destination_customer?.fullname; - const transfer = row?.transfer?.destination_customer?.fullname; + const purchase = "T-PAY"; + const transfer = row?.transfer.destination_name; - return purchase ?? transfer ?? ""; + return purchase ?? transfer; }, id: 'destination_customer.fullname', header: ({ column }) => (