From 96eba171d5ca1342066acf4bf1883220b8d6bf90 Mon Sep 17 00:00:00 2001 From: web Date: Thu, 24 Jul 2025 05:34:57 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(order):=20Update=20subscript?= =?UTF-8?q?ion=20cell=20to=20display=20name=20and=20quantity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/app/dashboard/order/page.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/admin/app/dashboard/order/page.tsx b/apps/admin/app/dashboard/order/page.tsx index a52803f..2a64276 100644 --- a/apps/admin/app/dashboard/order/page.tsx +++ b/apps/admin/app/dashboard/order/page.tsx @@ -57,8 +57,13 @@ export default function Page(props: any) { { accessorKey: 'subscribe_id', header: t('subscribe'), - cell: ({ row }) => - subscribeList?.find((item) => item.id === row.getValue('subscribe_id'))?.name, + cell: ({ row }) => { + const name = subscribeList?.find( + (item) => item.id === row.getValue('subscribe_id'), + )?.name; + const quantity = row.original.quantity; + return name ? `${name} × ${quantity}` : ''; + }, }, { accessorKey: 'amount',