Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Sep 27, 2024
1 parent b618a70 commit 8a8c970
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/commons/link/AddressLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ interface AddressLinkProps {
}

export function AddressLink(
props: PropsWithChildren<AddressLinkProps>
props: PropsWithChildren<AddressLinkProps>,
): JSX.Element {
if (props.address === undefined || props.address.length === 0) {
if (!props.address || props.address.length === 0) {
return <></>;
}

Expand All @@ -21,7 +21,7 @@ export function AddressLink(
data-testid={props.testId}
className={classnames(
"hover:underline text-blue-500 cursor-pointer",
props.className
props.className,
)}
>
<Link href={{ pathname: `/address/${props.address}` }}>
Expand Down

0 comments on commit 8a8c970

Please sign in to comment.