소스 검색

fixed if statement

kaori 4 년 전
부모
커밋
f4e4fd78a2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/app/src/components/PageEditor/InAppNotificationDropdown.tsx

+ 1 - 1
packages/app/src/components/PageEditor/InAppNotificationDropdown.tsx

@@ -73,7 +73,7 @@ const InAppNotificationDropdown = (props: Props) => {
   // }
 
   const onToggleDropdown = () => {
-    if (isOpen != null && count > 0) {
+    if (isOpen === false && count > 0) {
       updateStatus();
     }
     setIsOpen(!isOpen);