- {data.map(({ id, createdAt, urlPath, eventName, visitId }) => {
- const showHeader = !lastDay || !isSameDay(new Date(lastDay), new Date(createdAt));
- lastDay = createdAt;
+
+
+ {data?.map(({ eventId, createdAt, urlPath, eventName, visitId, hasData }) => {
+ const showHeader = !lastDay || !isSameDay(new Date(lastDay), new Date(createdAt));
+ lastDay = createdAt;
- return (
-
- {showHeader && (
- {formatTimezoneDate(createdAt, 'PPPP')}
- )}
-
-
+ return (
+
+ {showHeader && {formatTimezoneDate(createdAt, 'PPPP')}}
+
{formatTimezoneDate(createdAt, 'pp')}
-
-
{eventName ? : }
-
{eventName || urlPath}
-
-
- );
- })}
-
+