Преглед изворни кода

return function without no user

itizawa пре 5 година
родитељ
комит
6fd940ab06
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      src/client/js/components/Page/NotFoundAlert.jsx

+ 7 - 1
src/client/js/components/Page/NotFoundAlert.jsx

@@ -7,7 +7,13 @@ import { UncontrolledTooltip } from 'reactstrap';
 const NotFoundAlert = (props) => {
   const { t, isHidden, isGuestUserMode } = props;
   function clickHandler(viewType) {
-    console.log('push');
+
+    // check guest user,
+    // disabled of button cannot be used for using tooltip.
+    if (isGuestUserMode) {
+      return;
+    }
+
     if (props.onPageCreateClicked === null) {
       return;
     }