Skip to content

Commit

Permalink
bug(invoice) hide metadata section if invoice is draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jul 13, 2023
1 parent 4bc7f00 commit 1ad0c89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/InvoiceOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ export const InvoiceOverview = memo(
/>
)}

<Metadatas customer={customer} invoice={invoice} />
{invoice?.status !== InvoiceStatusTypeEnum.Draft && (
<Metadatas customer={customer} invoice={invoice} />
)}
</>
)}
</>
Expand Down

0 comments on commit 1ad0c89

Please sign in to comment.