Files
DocsGPT/frontend
Alex 4cc603db89 fix(frontend): guard CopyButton against concurrent copies
The button is disabled once isCopied is true, but copy() is now async, so
isCopied and the disabled prop only catch up after it resolves. Clicks
landing inside that window both passed the guard and started a write.

Nothing leaked, since the existing clearTimeout already handled the
duplicate timer, but the window did not exist before copy-to-clipboard 4
made the call async. A ref cleared in finally closes it.

Raised by CodeRabbit on #2762. 598 tests pass, build and lint unchanged.
2026-09-12 20:05:20 +01:00
..
2023-02-09 10:03:56 +05:30
2026-05-29 09:21:59 +01:00
2026-05-26 15:48:04 +01:00
2023-03-27 21:44:22 +01:00
2023-02-09 08:01:22 +05:30
2026-05-26 16:59:37 +01:00
2026-05-15 12:23:31 +01:00