Skip to content

Commit 2d5a37a

Browse files
committed
fix: remove unnecesary check
1 parent d9c9fd8 commit 2d5a37a

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10107,16 +10107,14 @@ function getTaskAssigneeChatOnyxData(
1010710107
},
1010810108
);
1010910109

10110-
if (isOptimisticAssigneeChatReport) {
10111-
// If task assignee is created optimistically, we need to clear the optimistic personal details to prevent duplication with real data sent from BE.
10112-
successData.push({
10113-
onyxMethod: Onyx.METHOD.MERGE,
10114-
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
10115-
value: {
10116-
[assigneeAccountID]: null,
10117-
},
10118-
});
10119-
}
10110+
// If task assignee is created optimistically, we need to clear the optimistic personal details to prevent duplication with real data sent from BE.
10111+
successData.push({
10112+
onyxMethod: Onyx.METHOD.MERGE,
10113+
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
10114+
value: {
10115+
[assigneeAccountID]: null,
10116+
},
10117+
});
1012010118

1012110119
failureData.push(
1012210120
{

0 commit comments

Comments
 (0)