From 894cbdd08895505aa7072c46f73a794b4e256557 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Tue, 20 Aug 2024 16:18:23 +0700 Subject: [PATCH] fix: Error while task creation via QAB when assigning task to yourself --- src/libs/actions/Task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Task.ts b/src/libs/actions/Task.ts index 646cd8a3db41..001245717e12 100644 --- a/src/libs/actions/Task.ts +++ b/src/libs/actions/Task.ts @@ -834,7 +834,7 @@ function clearOutTaskInfoAndNavigate(reportID?: string, chatReport?: OnyxEntry 0) { const accountLogin = allPersonalDetails?.[accountID]?.login ?? ''; - setAssigneeValue(accountLogin, accountID, reportID, chatReport, false, skipConfirmation); + setAssigneeValue(accountLogin, accountID, reportID, chatReport, accountID === currentUserAccountID, skipConfirmation); } Navigation.navigate(ROUTES.NEW_TASK_DETAILS); }