From 3512429ad4621cf2ee5c06302447793e7514118e Mon Sep 17 00:00:00 2001 From: Pierce Boggan Date: Wed, 24 Jul 2024 17:54:34 -0600 Subject: [PATCH] Fix tsc error "TS2769: No overload matches this call." (#30) --- src/routes/Main/ApisList/ApisTable/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Main/ApisList/ApisTable/index.tsx b/src/routes/Main/ApisList/ApisTable/index.tsx index d1da14b..39f292d 100644 --- a/src/routes/Main/ApisList/ApisTable/index.tsx +++ b/src/routes/Main/ApisList/ApisTable/index.tsx @@ -47,7 +47,7 @@ const ApisTable: FC<{ apis: Api[] | null }> = ({ apis }) => { {api.description} - {new Date(api.lastUpdated).toLocaleDateString()} + {new Date(api.lastUpdated || Date.now()).toLocaleDateString()} {/* TODO */} {/* TODO */} ))}