Skip to content

Commit

Permalink
Fixed coderabbit suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpoyatt committed Nov 13, 2024
1 parent 1c3155e commit 7acb2e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/(routes)/channels/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export default function Channels() {

useEffect(() => {
loadData(channelType);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [pageNumber, channelType]);

function updateHeader(newHeader: string) {
Expand Down
3 changes: 1 addition & 2 deletions app/(routes)/packets/packet-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { CHAIN_CONFIGS, CHAIN, clientToDisplay } from 'utils/chains/configs';
import { classNames, numberWithCommas, getExplorerFromRegistry } from 'utils/functions';
import { LinkAndCopy } from 'components/link-and-copy';
import { useEffect, useState } from 'react';
import { clear } from 'console';

export function PacketDetails(initialPacket: Packet | null, open: boolean) {
const [packet, setPacket] = useState<Packet | null>(initialPacket);
Expand Down Expand Up @@ -68,7 +67,7 @@ export function PacketDetails(initialPacket: Packet | null, open: boolean) {

return () => {
controller.abort();
clearInterval(intervalId);
if (intervalId) clearInterval(intervalId);
};
}, [initialPacket, open]);

Expand Down

0 comments on commit 7acb2e4

Please sign in to comment.