Skip to content

Commit

Permalink
Merge pull request Expensify#39328 from nexarvo/fix/39260
Browse files Browse the repository at this point in the history
fix: new task created when editing task assignee
  • Loading branch information
bondydaa authored Apr 9, 2024
2 parents 51704e5 + 787c568 commit d82f72c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/tasks/TaskAssigneeSelectorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function TaskAssigneeSelectorModal({reports, task}: TaskAssigneeSelectorModalPro
option?.login ?? '',
option?.accountID ?? -1,
report.reportID,
report,
null, // passing null as report because for editing task the report will be task details report page not the actual report where task was created
OptionsListUtils.isCurrentUser({...option, accountID: option?.accountID ?? -1, login: option?.login ?? ''}),
);

Expand All @@ -185,7 +185,7 @@ function TaskAssigneeSelectorModal({reports, task}: TaskAssigneeSelectorModalPro
option?.login ?? '',
option.accountID,
task?.shareDestination ?? '',
report,
null, // passing null as report is null in this condition
OptionsListUtils.isCurrentUser({...option, accountID: option?.accountID ?? -1, login: option?.login ?? undefined}),
);
Navigation.goBack(ROUTES.NEW_TASK);
Expand Down

0 comments on commit d82f72c

Please sign in to comment.