fix: general type checks fixes

This commit is contained in:
2026-06-12 22:58:34 +02:00 Unverified
parent 1d8ad90151
commit 1dbbfbaa2e
6 changed files with 14 additions and 9 deletions
@@ -82,7 +82,8 @@ const getStatusLabel = (status: string): string => {
return labels[status] || status
}
const formatDate = (dateString: string): string => {
const formatDate = (dateString?: string): string => {
if (!dateString) return ''
return new Date(dateString).toLocaleDateString('it-IT', {
day: '2-digit', month: '2-digit', year: '2-digit',
})