diff --git a/packages/transaction-log/src/components/common/app.main.component.tsx b/packages/transaction-log/src/components/common/app.main.component.tsx index f774e782..bda7c048 100644 --- a/packages/transaction-log/src/components/common/app.main.component.tsx +++ b/packages/transaction-log/src/components/common/app.main.component.tsx @@ -170,12 +170,17 @@ const App: React.FC = () => { useEffect(() => { const interval = setInterval(() => { - if (timestampFilter) { - fetchTransactionLogs(timestampFilter) - } + const currentTimestamp = new Date().toISOString() + setTimestampFilter(currentTimestamp) }, 5000) return () => clearInterval(interval) + }, []) + + useEffect(() => { + if (timestampFilter) { + fetchTransactionLogs(timestampFilter) + } }, [timestampFilter, fetchTransactionLogs]) const handleTabChange = (event: React.ChangeEvent<{}>, newValue: number) => {