Fix date formatting showing 'undefinedNaN NaN NaN'
This commit is contained in:
parent
185529678a
commit
65f706d3cc
|
@ -9,7 +9,7 @@ const FormattedDate = ({date}) => {
|
|||
const {timeZoneOffsetHours} = useMetadata();
|
||||
const {preferencesLoaded, dateFormatNoSeconds, recentDaysInDateFormat} = usePreferences();
|
||||
|
||||
if (!preferencesLoaded) return <></>
|
||||
if (!preferencesLoaded || date === undefined || date === null) return <></>
|
||||
|
||||
const pattern = dateFormatNoSeconds;
|
||||
const recentDays = recentDaysInDateFormat;
|
||||
|
|
Loading…
Reference in New Issue