mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-25 08:41:38 +01:00
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
Block a user