diff --git a/apps/dashboard/src/components/events/event-field-value.tsx b/apps/dashboard/src/components/events/event-field-value.tsx index 7ee55d1e..4d584562 100644 --- a/apps/dashboard/src/components/events/event-field-value.tsx +++ b/apps/dashboard/src/components/events/event-field-value.tsx @@ -5,11 +5,11 @@ import { isToday } from 'date-fns'; import { SerieIcon } from '../report-chart/common/serie-icon'; export function EventFieldValue({ - key, + name, value, event, }: { - key: keyof IServiceEvent; + name: keyof IServiceEvent; value: any; event: IServiceEvent; }) { @@ -21,7 +21,7 @@ export function EventFieldValue({ return isToday(value) ? formatTime(value) : formatDateTime(value); } - switch (key) { + switch (name) { case 'osVersion': return (
diff --git a/apps/dashboard/src/modals/event-details.tsx b/apps/dashboard/src/modals/event-details.tsx index a508de6e..83d437ef 100644 --- a/apps/dashboard/src/modals/event-details.tsx +++ b/apps/dashboard/src/modals/event-details.tsx @@ -300,7 +300,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) { }} > @@ -363,7 +363,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) { }} > @@ -374,7 +374,7 @@ export default function EventDetails({ id, createdAt, projectId }: Props) { return (