Skip to content

Commit b94dca7

Browse files
Fix break window animations
1 parent 5d222a7 commit b94dca7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/renderer/components/Break.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ export default function Break() {
277277
setReady(true);
278278
};
279279

280-
init();
280+
// Delay or the window displays incorrectly.
281+
// FIXME: work out why and how to avoid this.
282+
setTimeout(init, 1000);
281283
}, [animApi]);
282284

283285
const handleCountdownOver = React.useCallback(() => {

0 commit comments

Comments
 (0)