Skip to content

Commit

Permalink
fix: crash on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
reyamir committed Jun 19, 2024
1 parent 18c133d commit 8c0627f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/desktop2/src/routes/$account.home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ function Screen() {
}

return () => {
emblaApi.off("scroll", emitScrollEvent);
emblaApi.off("resize", emitResizeEvent);
emblaApi.off("slidesChanged", emitScrollEvent);
emblaApi?.off("scroll", emitScrollEvent);
emblaApi?.off("resize", emitResizeEvent);
emblaApi?.off("slidesChanged", emitScrollEvent);
};
}, [emblaApi, emitScrollEvent, emitResizeEvent]);

Expand Down

0 comments on commit 8c0627f

Please sign in to comment.