Skip to content

Commit 4ec0395

Browse files
authored
Fixes a console error introduced when updating the loading animation (#2019)
1 parent e94558a commit 4ec0395

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)