Skip to content

Commit

Permalink
refactor(core): fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mchappell committed Nov 13, 2024
1 parent 6f739b3 commit ecc7e39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface OutputSummaryProps {
list: SentAssetsList;
recipientAddress: string;
recipientName?: string;
translations?: TranslationsFor<'recipientAddress' | 'sending'>;
translations: TranslationsFor<'recipientAddress' | 'sending'>;
ownAddresses?: string[];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const WalletAddressList = ({

useEffect(() => {
const root = document.querySelector(`#${SCROLLABLE_CONTAINER_ID}`);
if (hasMore && root.scrollHeight <= root.clientHeight) {
if (hasMore && root && root.scrollHeight <= root.clientHeight) {
loadMoreData();
}
}, [hasMore, scrollableTargetId, loadMoreData]);
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/ui/hooks/useDialogWithData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { useState } from 'react';
export const useDialogWithData = <Data>(
initialData?: Data
): {
data: Data;
data: Data | undefined;
isOpen: boolean;
setData: (data: Data) => void;
open: (data?: Data) => void;
hide: () => void;
} => {
const [isOpen, setIsOpen] = useState(false);
const [data, setData] = useState<Data>(initialData);
const [data, setData] = useState<Data | undefined>(initialData ?? undefined);

return {
data,
Expand Down

0 comments on commit ecc7e39

Please sign in to comment.