浏览代码

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);