Skip to content

Commit 91fc11c

Browse files
committed
fix lint
1 parent 34289e0 commit 91fc11c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
479 KB
Loading

protocol-designer/src/pages/CreateNewProtocolWizard/WizardBody.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ export function WizardBody(props: WizardBodyProps): JSX.Element {
6868
const videoAsset = ONBOARDING_ANIMATIONS[stepNumber]
6969
setLoaded(false)
7070
setAsset(videoAsset)
71-
const timeout = setTimeout(() => setLoaded(true), 100)
72-
return () => clearTimeout(timeout)
71+
const timeout = setTimeout(() => {
72+
setLoaded(true)
73+
}, 100)
74+
return () => {
75+
clearTimeout(timeout)
76+
}
7377
}, [stepNumber])
7478

7579
return (

0 commit comments

Comments
 (0)