fix: ability option key.

This commit is contained in:
elforjani13
2021-11-27 20:23:40 +02:00
parent 68227b81e8
commit 346696f673
6 changed files with 34 additions and 22 deletions

View File

@@ -120,9 +120,9 @@ function InvoiceDetailActionsBar({
intent={Intent.DANGER}
onClick={handleDeleteInvoice}
/>
<NavbarDivider />
</Can>
<Can I={SaleInvoiceAction.Writeoff} a={AbilitySubject.Invoice}>
<NavbarDivider />
<BadDebtMenuItem
payload={{
onBadDebt: handleBadDebtInvoice,