Skip to content

Commit a6ed74b

Browse files
authored
Merge pull request #42977 from nkdengineer/fix/42261
Fix User is shown option to submit expense using group
2 parents d1e5a9e + 4beb40b commit a6ed74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/OptionsListUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ function createOption(
818818
result.isIOUReportOwner = ReportUtils.isIOUOwnedByCurrentUser(result);
819819
result.iouReportAmount = ReportUtils.getMoneyRequestSpendBreakdown(result).totalDisplaySpend;
820820

821-
if (!hasMultipleParticipants) {
821+
if (!hasMultipleParticipants && !ReportUtils.isGroupChat(report) && !ReportUtils.isChatRoom(report)) {
822822
result.login = personalDetail?.login;
823823
result.accountID = Number(personalDetail?.accountID);
824824
result.phoneNumber = personalDetail?.phoneNumber;

0 commit comments

Comments
 (0)