fix: column NaN value
This commit is contained in:
parent
3061b88343
commit
f949253b77
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue