Skip to content

Commit

Permalink
Fix dw lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nop33 committed Mar 4, 2025
1 parent 1d96078 commit e5a1eeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/desktop-wallet/src/components/AddressBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const AddressBadge = ({
}: AddressBadgeProps) => {
const { t } = useTranslation()
const address = useAppSelector((s) => selectAddressByHash(s, addressHash))
const selectContactByAddress = useMemo(makeSelectContactByAddress, [])
const selectContactByAddress = useMemo(() => makeSelectContactByAddress(), [])
const contact = useAppSelector((s) => selectContactByAddress(s, addressHash))

const displayedHash = contact ? contact.address : address ? address.hash : addressHash
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop-wallet/src/components/Inputs/AddressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type InputFieldMode = 'view' | 'edit'
const AddressInput = ({ value, ...props }: InputProps) => {
const addressHashInput = value?.toString() || ''
const ownAddress = useAppSelector((s) => selectAddressByHash(s, addressHashInput))
const selectContactByAddress = useMemo(makeSelectContactByAddress, [])
const selectContactByAddress = useMemo(() => makeSelectContactByAddress(), [])
const contact = useAppSelector((s) => selectContactByAddress(s, addressHashInput))
const inputRef = useRef<HTMLInputElement>(null)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const DeleteAddressesModal = memo(({ id }: ModalBaseProp) => {
}

// We want to initialize the selected addresses only once, we don't care if txs come in the meantime that will update the data array
// eslint-disable-next-line react-compiler/react-compiler
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isLoadingSortedAddresses])

Expand Down

0 comments on commit e5a1eeb

Please sign in to comment.