prevent shift on pending -> paid
This commit is contained in:
parent
9f06fd65ee
commit
68f7e4111b
|
@ -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>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue