Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

improvement

Ashish Viradiyadd284c62f74c
diff --git a/lib/hooks/use-breakpoint.ts b/lib/hooks/use-breakpoint.ts
index 26c5f1b1..f872c09e 100644
--- a/lib/hooks/use-breakpoint.ts
+++ b/lib/hooks/use-breakpoint.ts
@@ -10,10 +10,7 @@ export function useBreakpoint(breakpoint: number) {
handleResize();
window.addEventListener('resize', handleResize);
-
- return () => {
- window.removeEventListener('resize', handleResize);
- };
+ return () => window.removeEventListener('resize', handleResize);
}, [breakpoint]);
return isSmaller;