We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf62643 commit a91abc1Copy full SHA for a91abc1
frontend/src/utils/structuredData.ts
@@ -1,7 +1,7 @@
1
import { ProfilePageStructuredData } from 'types/profilePageStructuredData'
2
import type { User } from 'types/user'
3
4
-export const formatISODate = (input: number | string): string => {
+export const formatISODate = (input?: number | string): string => {
5
const date =
6
typeof input === 'number'
7
? new Date(input * 1000) // Unix timestamp in seconds
0 commit comments