diff --git a/src/app/components/target-info-modal/components/target-details/index.tsx b/src/app/components/target-info-modal/components/target-details/index.tsx index 04aff8d..1762731 100644 --- a/src/app/components/target-info-modal/components/target-details/index.tsx +++ b/src/app/components/target-info-modal/components/target-details/index.tsx @@ -25,7 +25,7 @@ export default function TargetDetails({ }) { const items = [ { title: 'Controller ID', value: controllerId }, - { title: 'Last Poll', value: lastPoll?.toString() }, + { title: 'Last Poll', value: lastPoll?.toLocaleString() }, { title: 'Address', value: address }, { title: 'Security Token', value: securityToken }, { title: 'Description', value: description }, diff --git a/src/app/components/target-info-modal/containers/target-details-container/index.tsx b/src/app/components/target-info-modal/containers/target-details-container/index.tsx index 49b5ffd..7982bd8 100644 --- a/src/app/components/target-info-modal/containers/target-details-container/index.tsx +++ b/src/app/components/target-info-modal/containers/target-details-container/index.tsx @@ -5,9 +5,12 @@ import { useTargetsTableStore } from '@/stores/targets-table-store'; export default function TargetDetailsContainer() { const selectedTarget = useTargetsTableStore((state) => state.selectedTarget); + const lastPollAt = selectedTarget?.pollStatus?.lastRequestAt ?? selectedTarget?.lastControllerRequestAt; + return (