Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix lint
  • Loading branch information
TheodoreSpeaks committed Apr 8, 2026
commit 6ed3bcc12a0d5aaf20a3599bd6d2c6df8fdd08c8
9 changes: 6 additions & 3 deletions apps/sim/components/ui/copy-code-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ export function CopyCodeButton({ code, className }: CopyCodeButtonProps) {
timerRef.current = setTimeout(() => setCopied(false), 2000)
}, [code])

useEffect(() => () => {
if (timerRef.current) clearTimeout(timerRef.current)
}, [])
useEffect(
() => () => {
if (timerRef.current) clearTimeout(timerRef.current)
},
[]
)

return (
<button
Expand Down
Loading