diff --git a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/UpdatedDate.tsx b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/UpdatedDate.tsx index 094eda4e4..de0663451 100644 --- a/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/UpdatedDate.tsx +++ b/src/FilterLists.Web/ClientApp/modules/home/components/listsTable/columns/UpdatedDate.tsx @@ -18,8 +18,8 @@ export const UpdatedDate = (columnVisibility: IColumnVisibility[]) => { }; const sortMethod = (a: string, b: string) => - moment(a).isValid() - ? (moment(b).isValid() + a && moment(a).isValid() + ? (b && moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1)