瀏覽代碼

add back onboarding redirect

jusrhee 4 年之前
父節點
當前提交
2bcd09238e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dashboard/src/main/home/Home.tsx

+ 2 - 2
dashboard/src/main/home/Home.tsx

@@ -204,7 +204,7 @@ class Home extends Component<PropsType, StateType> {
       this.props.history.location.pathname &&
       this.props.history.location.pathname &&
       !this.props.history.location.pathname.includes("onboarding")
       !this.props.history.location.pathname.includes("onboarding")
     ) {
     ) {
-      //this.context.setCurrentModal("RedirectToOnboardingModal");
+      this.context.setCurrentModal("RedirectToOnboardingModal");
     }
     }
   }
   }
 
 
@@ -251,7 +251,7 @@ class Home extends Component<PropsType, StateType> {
       !this.props.history.location.pathname.includes("new-project") &&
       !this.props.history.location.pathname.includes("new-project") &&
       !this.props.history.location.pathname.includes("project-settings")
       !this.props.history.location.pathname.includes("project-settings")
     ) {
     ) {
-      //this.context.setCurrentModal("RedirectToOnboardingModal");
+      this.context.setCurrentModal("RedirectToOnboardingModal");
     }
     }
     if (prevProps.currentProject?.id !== this.props.currentProject?.id) {
     if (prevProps.currentProject?.id !== this.props.currentProject?.id) {
       this.checkOnboarding();
       this.checkOnboarding();