From 4986bbf0cc7ce192efaec95824f1bd505a2d9aff Mon Sep 17 00:00:00 2001 From: tienifr Date: Thu, 7 Sep 2023 19:38:53 +0700 Subject: [PATCH 1/2] fix: 26762 --- src/libs/actions/Task.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/actions/Task.js b/src/libs/actions/Task.js index 6227686b3f45..3f29730cbc30 100644 --- a/src/libs/actions/Task.js +++ b/src/libs/actions/Task.js @@ -529,6 +529,7 @@ function editTaskAssigneeAndNavigate(report, ownerAccountID, assigneeEmail, assi reportName, managerID: assigneeAccountID || report.managerID, managerEmail: assigneeEmail || report.managerEmail, + notificationPreference: [assigneeAccountID, ownerAccountID].includes(currentUserAccountID) ? CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS : CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN, }, }, ]; From fda078116081fe005cda01c9148ab205478c1f7a Mon Sep 17 00:00:00 2001 From: tienifr Date: Wed, 20 Sep 2023 18:03:05 +0700 Subject: [PATCH 2/2] fix lint --- src/libs/actions/Task.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/Task.js b/src/libs/actions/Task.js index 1ed1d35449f8..50f524809202 100644 --- a/src/libs/actions/Task.js +++ b/src/libs/actions/Task.js @@ -520,7 +520,9 @@ function editTaskAssigneeAndNavigate(report, ownerAccountID, assigneeEmail, assi reportName, managerID: assigneeAccountID || report.managerID, managerEmail: assigneeEmail || report.managerEmail, - notificationPreference: [assigneeAccountID, ownerAccountID].includes(currentUserAccountID) ? CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS : CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN, + notificationPreference: [assigneeAccountID, ownerAccountID].includes(currentUserAccountID) + ? CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS + : CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN, }, }, ];