fix: column NaN value

This commit is contained in:
deepvasoya 2025-05-21 16:18:36 +05:30
parent 3061b88343
commit f949253b77
1 changed files with 4 additions and 4 deletions

View File

@ -268,7 +268,7 @@ const ClinicsList = () => {
// .................company name column.................. // .................company name column..................
{ {
enableSorting: true, enableSorting: true,
size: 260, size: 200,
accessorKey: "name", accessorKey: "name",
header: "Clinic Name", header: "Clinic Name",
Cell: ({ row }) => ( Cell: ({ row }) => (
@ -309,11 +309,11 @@ const ClinicsList = () => {
// ......................approve at column............... // ......................approve at column...............
{ {
enableSorting: true, enableSorting: true,
size: 100, size: 150,
accessorKey: "approvedAt", accessorKey: "update_time",
header: "Approved Since", header: "Approved Since",
Cell: ({ row }) => { Cell: ({ row }) => {
const approvedAtDate = new Date(row?.original?.approvedAt); const approvedAtDate = new Date(row?.original?.update_time);
const today = new Date(); const today = new Date();
const daysDiff = differenceInDays(today, approvedAtDate); const daysDiff = differenceInDays(today, approvedAtDate);