Enhance security and error handling in various components by refining error catch blocks to ignore specific errors, improving code clarity and consistency across the application.
This commit is contained in:
@@ -17,7 +17,7 @@ function formatDateWithLeadingZeros(dateString) {
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||
const year = date.getFullYear()
|
||||
return `${day}.${month}.${year}`
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
return dateString
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user