Skip to content

Commit 62909f5

Browse files
committed
style: add empty lines
1 parent 96c011a commit 62909f5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pages/inbox/report/PureReportActionItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,10 @@ function PureReportActionItem({
457457
const disabledActions = useMemo(() => (!canWriteInReport(report) ? RestrictedReadOnlyContextMenuActions : []), [report]);
458458

459459
const hasActionErrors = !isEmptyValueObject(action.errors);
460+
460461
// Receipt upload errors should still allow the context menu so the user can access "Delete expense"
461462
const hasOnlyReceiptErrors = hasActionErrors && Object.values(action.errors ?? {}).every((error) => error === null || isReceiptError(error));
463+
462464
const isContextMenuDisabled = useMemo(() => {
463465
return draftMessage !== undefined || (hasActionErrors && !hasOnlyReceiptErrors) || !shouldDisplayContextMenuValue;
464466
}, [draftMessage, hasActionErrors, hasOnlyReceiptErrors, shouldDisplayContextMenuValue]);

0 commit comments

Comments
 (0)