prevent shift on pending -> paid

This commit is contained in:
k00b 2024-09-25 17:38:37 -05:00
parent 9f06fd65ee
commit 68f7e4111b
1 changed files with 6 additions and 5 deletions

View File

@ -324,11 +324,12 @@ function EditInfo ({ item, canEdit, setCanEdit, onEdit, editText, editThreshold
onClick={() => onEdit ? onEdit() : router.push(`/items/${item.id}/edit`)} onClick={() => onEdit ? onEdit() : router.push(`/items/${item.id}/edit`)}
> >
<span>{editText || 'edit'} </span> <span>{editText || 'edit'} </span>
{(!item.invoice?.actionState || item.invoice?.actionState === 'PAID') && {(!item.invoice?.actionState || item.invoice?.actionState === 'PAID')
<Countdown ? <Countdown
date={editThreshold} date={editThreshold}
onComplete={() => { setCanEdit(false) }} onComplete={() => { setCanEdit(false) }}
/>} />
: <span>10:00</span>}
</span> </span>
</> </>
) )