Skip to content

Commit a32da40

Browse files
authored
Merge pull request #47692 from nkdengineer/fix/47680
[CP staging] fix: Error while task creation via QAB when assigning task to yourself
2 parents ea13761 + 894cbdd commit a32da40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/actions/Task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ function clearOutTaskInfoAndNavigate(reportID?: string, chatReport?: OnyxEntry<O
834834
}
835835
if (accountID > 0) {
836836
const accountLogin = allPersonalDetails?.[accountID]?.login ?? '';
837-
setAssigneeValue(accountLogin, accountID, reportID, chatReport, false, skipConfirmation);
837+
setAssigneeValue(accountLogin, accountID, reportID, chatReport, accountID === currentUserAccountID, skipConfirmation);
838838
}
839839
Navigation.navigate(ROUTES.NEW_TASK_DETAILS);
840840
}

0 commit comments

Comments
 (0)