Explorar o código

return function without no user

itizawa %!s(int64=5) %!d(string=hai) anos
pai
achega
6fd940ab06
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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 NotFoundAlert = (props) => {
   const { t, isHidden, isGuestUserMode } = props;
   const { t, isHidden, isGuestUserMode } = props;
   function clickHandler(viewType) {
   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) {
     if (props.onPageCreateClicked === null) {
       return;
       return;
     }
     }