|
|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
import { CopyButton } from "@pythnetwork/component-library/CopyButton";
|
|
|
import { Link } from "@pythnetwork/component-library/Link";
|
|
|
-import { useMemo } from 'react';
|
|
|
+import { useMemo } from "react";
|
|
|
|
|
|
import styles from "./index.module.scss";
|
|
|
|
|
|
@@ -22,8 +22,11 @@ const CopyAddress = ({
|
|
|
maxLength?: number;
|
|
|
url?: string;
|
|
|
}) => {
|
|
|
- const formattedAddress = useMemo(() => truncate(address, maxLength), [address, maxLength]);
|
|
|
-
|
|
|
+ const formattedAddress = useMemo(
|
|
|
+ () => truncate(address, maxLength),
|
|
|
+ [address, maxLength],
|
|
|
+ );
|
|
|
+
|
|
|
return url ? (
|
|
|
<div className={styles.address}>
|
|
|
<Link href={url} target="_blank" rel="noreferrer">
|