Skip to content

Commit 98f0893

Browse files
committed
Fixes a console error introduced when updating the loading animation
1 parent a10e2a8 commit 98f0893

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/webapp/app/components/primitives/LoadingBarDivider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export function AnimationDivider({ isLoading }: LoadingBarDividerProps) {
1818
const [isPresent, safeToRemove] = usePresence();
1919

2020
useEffect(() => {
21+
if (!scope.current) return;
22+
2123
if (isPresent) {
2224
const enterAnimation = async () => {
2325
await animate(

0 commit comments

Comments
 (0)