diff --git a/components/item-info.js b/components/item-info.js index a6e29364..776f6251 100644 --- a/components/item-info.js +++ b/components/item-info.js @@ -324,11 +324,12 @@ function EditInfo ({ item, canEdit, setCanEdit, onEdit, editText, editThreshold onClick={() => onEdit ? onEdit() : router.push(`/items/${item.id}/edit`)} > {editText || 'edit'} - {(!item.invoice?.actionState || item.invoice?.actionState === 'PAID') && - { setCanEdit(false) }} - />} + {(!item.invoice?.actionState || item.invoice?.actionState === 'PAID') + ? { setCanEdit(false) }} + /> + : 10:00} )