Skip to content

Commit

Permalink
handle expense chat by one more property
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Nov 22, 2023
1 parent 4403cb8 commit 5082a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ function isUserCreatedPolicyRoom(report) {
* @returns {Boolean}
*/
function isPolicyExpenseChat(report) {
return getChatType(report) === CONST.REPORT.CHAT_TYPE.POLICY_EXPENSE_CHAT;
return getChatType(report) === CONST.REPORT.CHAT_TYPE.POLICY_EXPENSE_CHAT || report.isPolicyExpenseChat;
}

/** Wether the provided report belongs to a Control policy and is an epxense chat
Expand Down

0 comments on commit 5082a84

Please sign in to comment.