Makes it so that voiding cash payments is possible

This commit is contained in:
Bryce Covert
2022-12-21 10:59:47 -08:00
parent d36667d0a8
commit 7d0f723ef6
3 changed files with 56 additions and 36 deletions

View File

@@ -218,8 +218,7 @@
{:keys [total]} @(re-frame/subscribe [::data-page/data :invoices])
]
[:div.buttons
(when (and (= :unpaid status)
is-admin?)
(when is-admin?
[void-selected-button])
[buttons/new-button {:event [::new-invoice-clicked]