Browse Source

clear localstorage on logout

Sean Rhee 5 years ago
parent
commit
01ce60a02e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      dashboard/src/main/Main.tsx

+ 3 - 0
dashboard/src/main/Main.tsx

@@ -55,6 +55,9 @@ export default class Main extends Component<PropsType, StateType> {
   }
 
   handleLogOut = () => {
+    // Clears local storage for proper rendering of clusters
+    localStorage.clear();
+
     this.context.clearContext();
     this.setState({ isLoggedIn: false, initialized: true });
   }