Kaynağa Gözat

fixed if statement

kaori 4 yıl önce
ebeveyn
işleme
f4e4fd78a2

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