Skip to content

Commit

Permalink
fix: undo conditional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Oct 7, 2024
1 parent edbbda7 commit d783705
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Equalizer = () => {

return () => {
if (lottieRef.current) {
lottieRef?.current?.destroy()
lottieRef.current.destroy()
}
}
}, [])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Equalizer = () => {

return () => {
if (lottieRef.current) {
lottieRef?.current?.destroy()
lottieRef.current.destroy()
}
}
}, [])
Expand Down
2 changes: 1 addition & 1 deletion src/components/App/Splash/SpiningSphere/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const SphereAnimation = () => {

return () => {
if (lottieRef.current) {
lottieRef?.current?.destroy()
lottieRef.current.destroy()
}
}
}, [])
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stats/Animation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Animation = () => {

return () => {
if (lottieRef.current) {
lottieRef?.current?.destroy()
lottieRef.current.destroy()
}
}
}, [])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Animation = ({ meshId }: { meshId: string }) => {

return () => {
if (lottieRef.current) {
lottieRef?.current?.destroy()
lottieRef.current.destroy()
}
}
}, [meshId])
Expand Down

0 comments on commit d783705

Please sign in to comment.