Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#92094)

hermes-seaeye[bot]9098f6777b93
diff --git a/apps/desktop/src/components/ui/confirm-dialog-unmount.test.tsx b/apps/desktop/src/components/ui/confirm-dialog-unmount.test.tsx
index e797b35abe5..c2d1d587166 100644
--- a/apps/desktop/src/components/ui/confirm-dialog-unmount.test.tsx
+++ b/apps/desktop/src/components/ui/confirm-dialog-unmount.test.tsx
@@ -34,15 +34,7 @@ test('the close timer does not fire after unmount', async () => {
const onClose = vi.fn()
const onConfirm = vi.fn()
- render(
- <ConfirmDialog
- confirmLabel="Delete"
- onClose={onClose}
- onConfirm={onConfirm}
- open
- title="Delete session"
- />
- )
+ render(<ConfirmDialog confirmLabel="Delete" onClose={onClose} onConfirm={onConfirm} open title="Delete session" />)
fireEvent.click(screen.getByRole('button', { name: 'Delete' }))
diff --git a/apps/desktop/src/components/ui/zoomable.tsx b/apps/desktop/src/components/ui/zoomable.tsx
index 46aed953c0f..8fa4c9e7674 100644
--- a/apps/desktop/src/components/ui/zoomable.tsx
+++ b/apps/desktop/src/components/ui/zoomable.tsx
@@ -141,9 +141,11 @@ function Toolbar({
await onCopy()
setCopied(true)
+
if (resetRef.current !== null) {
window.clearTimeout(resetRef.current)
}
+
resetRef.current = window.setTimeout(() => {
resetRef.current = null
setCopied(false)