diff --git a/web/src/App.tsx b/web/src/App.tsx index 2d37d1d..b091923 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -587,11 +587,11 @@ export default function App() { /> )}
{ + onClick={async (e)=>{ // Rainbow-Flash für 1s im Rainbow-Theme try { if (theme === 'rainbow') { - const el = (event?.currentTarget as HTMLDivElement | undefined); + const el = (e.currentTarget as HTMLDivElement | undefined); if (el) { el.classList.add('rainbow-flash'); setTimeout(()=> el.classList.remove('rainbow-flash'), 1000);