Skip to content

Commit a91abc1

Browse files
make input optional
1 parent bf62643 commit a91abc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/utils/structuredData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ProfilePageStructuredData } from 'types/profilePageStructuredData'
22
import type { User } from 'types/user'
33

4-
export const formatISODate = (input: number | string): string => {
4+
export const formatISODate = (input?: number | string): string => {
55
const date =
66
typeof input === 'number'
77
? new Date(input * 1000) // Unix timestamp in seconds

0 commit comments

Comments
 (0)