Skip to content

Commit

Permalink
🐛 Fixed issue with log types
Browse files Browse the repository at this point in the history
  • Loading branch information
abdheshnayak committed Feb 14, 2024
1 parent 2ede099 commit b4ae2ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client/helpers/socket/useSockLogs.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react';
import { dayjs } from '~/components/molecule/dayjs';
import { ILog } from '~/console/components/logger';
import { ISocketResp, useSubscribe } from './context';

interface IuseLog {
Expand All @@ -9,7 +10,7 @@ interface IuseLog {
}

export const useSocketLogs = ({ account, cluster, trackingId }: IuseLog) => {
const [logs, setLogs] = useState<ISocketResp<IuseLog>[]>([]);
const [logs, setLogs] = useState<ISocketResp<ILog>[]>([]);
const { responses, subscribed, errors } = useSubscribe(
{
for: 'logs',
Expand Down

0 comments on commit b4ae2ae

Please sign in to comment.