Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

Typo

emilkowalskie8ad874b6db0
diff --git a/src/index.tsx b/src/index.tsx
index 9564e4d..b880d47 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -159,7 +159,7 @@ function Root({
const swipeAmount = drawerRef.current ? getTranslate(drawerRef.current, direction) : null;
const date = new Date();
- if (direction === 'right' || 'left') {
+ if (direction === 'right' || direction === 'left') {
return true;
}