mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 12:52:35 +03:00
Fix formatted date filter
This commit is contained in:
@@ -10,8 +10,8 @@ export const buildDate = (value) => {
|
||||
}
|
||||
|
||||
const formattedDate = (value) => {
|
||||
const buildDate = buildDate(value);
|
||||
return buildDate ? buildDate.toLocaleDateString() : null;
|
||||
const date = buildDate(value);
|
||||
return date ? date.toLocaleDateString() : null;
|
||||
};
|
||||
|
||||
export default formattedDate;
|
||||
Reference in New Issue
Block a user