From 68f7e4111b4e7a3a27eebfb4f004c159b2b76e46 Mon Sep 17 00:00:00 2001 From: k00b Date: Wed, 25 Sep 2024 17:38:37 -0500 Subject: [PATCH] prevent shift on pending -> paid --- components/item-info.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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} )