Skip to content

Commit fac06e5

Browse files
committed
Only show submit expenses button on expenseReports
1 parent 80a91f6 commit fac06e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/home/report/PureReportActionItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ function PureReportActionItem({
821821

822822
const actionableMentionWhisperOptions = [];
823823

824-
if (isPolicyAdmin(policy) || isPolicyOwner(policy, currentUserAccountID)) {
824+
if (isExpenseReport(report) && (isPolicyAdmin(policy) || isPolicyOwner(policy, currentUserAccountID))) {
825825
actionableMentionWhisperOptions.push({
826826
text: 'actionableMentionWhisperOptions.inviteToSubmitExpense',
827827
key: `${action.reportActionID}-actionableMentionWhisper-${CONST.REPORT.ACTIONABLE_MENTION_WHISPER_RESOLUTION.INVITE_TO_SUBMIT_EXPENSE}`,

0 commit comments

Comments
 (0)