Skip to content

Commit

Permalink
Merge pull request #55716 from callstack-internal/JKobrynski/fix/trac…
Browse files Browse the repository at this point in the history
…k-expense-bug

[CP Staging] Fix - Self DM - User can submit track expense to self (You) again and send invoice to self
  • Loading branch information
grgia authored Jan 24, 2025
2 parents a4aba42 + 129e8ae commit d07ec9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/iou/request/MoneyRequestParticipantsSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import usePolicy from '@hooks/usePolicy';
import useScreenWrapperTranstionStatus from '@hooks/useScreenWrapperTransitionStatus';
import useThemeStyles from '@hooks/useThemeStyles';
import {canUseTouchScreen} from '@libs/DeviceCapabilities';
import {isMovingTransactionFromTrackExpense} from '@libs/IOUUtils';
import Navigation from '@libs/Navigation/Navigation';
import {
filterAndOrderOptions,
Expand Down Expand Up @@ -122,7 +123,7 @@ function MoneyRequestParticipantsSelector({participants = CONST.EMPTY_ARRAY, onF
action,
shouldSeparateSelfDMChat: iouType !== CONST.IOU.TYPE.INVOICE,
shouldSeparateWorkspaceChat: true,
includeSelfDM: true,
includeSelfDM: !isMovingTransactionFromTrackExpense(action) && iouType !== CONST.IOU.TYPE.INVOICE,
},
);

Expand Down

0 comments on commit d07ec9b

Please sign in to comment.