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