Skip to content

Commit

Permalink
Disable inline edit for DRAFT expenses
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavlrsn committed Dec 19, 2024
1 parent 7e68b47 commit ee1be4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/expenses/ExpenseSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ const ExpenseSummary = ({
const useInlineExpenseEdit =
LoggedInUser?.hasPreviewFeatureEnabled(PREVIEW_FEATURE_KEYS.NEW_EXPENSE_FLOW) &&
expense?.permissions.canEdit &&
expense?.type !== ExpenseType.GRANT;
expense?.type !== ExpenseType.GRANT &&
expense?.status !== ExpenseStatus.DRAFT;

const processButtons = (
<Flex
Expand Down

0 comments on commit ee1be4a

Please sign in to comment.