🐛 fix(order): Update subscription cell to display name and quantity

This commit is contained in:
web 2025-07-24 05:34:57 -07:00
parent 2675034b75
commit 96eba171d5

View File

@ -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',