expand sub tasks
This commit is contained in:
@@ -52,7 +52,8 @@ const AccountSetup: React.FC = () => {
|
||||
trackMixpanelEvent(evt_account_setup_visit);
|
||||
const verifyAuthStatus = async () => {
|
||||
try {
|
||||
const response = (await dispatch(verifyAuthentication()).unwrap()).payload as IAuthorizeResponse;
|
||||
const response = (await dispatch(verifyAuthentication()).unwrap())
|
||||
.payload as IAuthorizeResponse;
|
||||
if (response?.authenticated) {
|
||||
setSession(response.user);
|
||||
dispatch(setUser(response.user));
|
||||
@@ -152,9 +153,7 @@ const AccountSetup: React.FC = () => {
|
||||
const model: IAccountSetupRequest = {
|
||||
team_name: sanitizeInput(organizationName),
|
||||
project_name: sanitizeInput(projectName),
|
||||
tasks: tasks
|
||||
.map(task => sanitizeInput(task.value.trim()))
|
||||
.filter(task => task !== ''),
|
||||
tasks: tasks.map(task => sanitizeInput(task.value.trim())).filter(task => task !== ''),
|
||||
team_members: skip
|
||||
? []
|
||||
: teamMembers
|
||||
|
||||
Reference in New Issue
Block a user