Skip to content

Commit e1426e8

Browse files
committed
Add missing hook dependency
1 parent 2c09240 commit e1426e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/frontend/Output/Gist.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Copied: React.FC<CopiedProps> = ({ children, href }) => {
4343
setTimeout(() => {
4444
setCopied(false);
4545
}, 1000);
46-
}, []);
46+
}, [href]);
4747

4848
return (
4949
<p className={copied ? styles.active : styles.container}>

0 commit comments

Comments
 (0)