From 614a43e895d452574526910bab71234955a4db4b Mon Sep 17 00:00:00 2001 From: Hong Beomsun Date: Thu, 26 Mar 2026 13:49:11 +0900 Subject: [PATCH] fix(ui): show target last poll in details modal --- .../target-info-modal/components/target-details/index.tsx | 2 +- .../containers/target-details-container/index.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 (