kaori 4 лет назад
Родитель
Сommit
9998f7bcff
1 измененных файлов с 9 добавлено и 10 удалено
  1. 9 10
      packages/app/src/components/PageEditor/InAppNotificationDropdown.tsx

+ 9 - 10
packages/app/src/components/PageEditor/InAppNotificationDropdown.tsx

@@ -134,16 +134,15 @@ const InAppNotificationDropdown: FC = (props) => {
   }
 
   function renderInAppNotificationContents(): JSX.Element{
-  console.log('isLoadedhoge', isLoaded)
-  if(isLoaded === true){
-    return <RenderUnLoadedInAppNotification />
-  }
-  else if (notifications.length <= 0){
-    return <RenderEmptyInAppNotification />;
-  }
-  else {
-    return <RenderInAppNotificationList />;
-  }
+    if(isLoaded === true){
+      return <RenderUnLoadedInAppNotification />
+    }
+    else if (notifications.length = 0){
+      return <RenderEmptyInAppNotification />;
+    }
+    else {
+      return <RenderInAppNotificationList />;
+    }
   }
 
   return (