3 Commity 16907048f9 ... ee87d7ed2a

Autor SHA1 Wiadomość Data
  Tanya Sashyna ee87d7ed2a fix sidebar 5 lat temu
  Tanya Sashyna 239a2cca75 Merge branch 'dev' into Tanya 5 lat temu
  Tanya Sashyna 59bc0d043f merge with dev 5 lat temu
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/components/sidebar/Sidebar.js

+ 2 - 2
src/components/sidebar/Sidebar.js

@@ -57,7 +57,7 @@ export class Sidebar extends React.Component {
                     </div>
                     <ul>
 						{
-                            role && <li><Link to="/profile">Profile</Link></li>
+                            role === 'user' && <li><Link to="/profile">Profile</Link></li>
 						}
 						
                         {
@@ -71,7 +71,7 @@ export class Sidebar extends React.Component {
                             !role && <li><Link to="/login">Login</Link></li>
 						}
                         {
-                            role && <li>
+                            role === 'user' && <li>
                                 <button className="logout" onClick={this.logoutHandler}>
                                     <i className="fa fa-sign-out"></i>
                                 </button>