🐛 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', accessorKey: 'subscribe_id',
header: t('subscribe'), header: t('subscribe'),
cell: ({ row }) => cell: ({ row }) => {
subscribeList?.find((item) => item.id === row.getValue('subscribe_id'))?.name, const name = subscribeList?.find(
(item) => item.id === row.getValue('subscribe_id'),
)?.name;
const quantity = row.original.quantity;
return name ? `${name} × ${quantity}` : '';
},
}, },
{ {
accessorKey: 'amount', accessorKey: 'amount',