Skip to content

Commit 029f055

Browse files
committed
feat: add create report option for reported expenses
1 parent e63af3c commit 029f055

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/iou/request/step/IOURequestEditReportCommon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function IOURequestEditReportCommon({
153153
const headerMessage = useMemo(() => (searchValue && !reportOptions.length ? translate('common.noResultsFound') : ''), [searchValue, reportOptions, translate]);
154154

155155
const createReportOption = useMemo(() => {
156-
if (!createReport || isUnreported === false) {
156+
if (!createReport) {
157157
return undefined;
158158
}
159159

@@ -165,7 +165,7 @@ function IOURequestEditReportCommon({
165165
icon={Expensicons.DocumentPlus}
166166
/>
167167
);
168-
}, [createReport, isUnreported, translate, activePolicy?.name]);
168+
}, [createReport, translate, activePolicy?.name]);
169169

170170
// eslint-disable-next-line rulesdir/no-negated-variables
171171
const shouldShowNotFoundPage = useMemo(() => {

0 commit comments

Comments
 (0)