refactor(FE): Add condition to hide buttons when step number is 3

This commit is contained in:
rstubryan
2026-02-06 14:32:30 +07:00
parent 4d23929924
commit 3bacc59dc6
@@ -718,7 +718,8 @@ const DeliveryOrderFormModal = ({
/>
</div>
)}
{step === 1 && (
{step === 1 &&
marketing?.data?.latest_approval?.step_number !== 3 && (
<div className='w-full px-4 py-3 grid grid-cols-2 items-center justify-between gap-3 border-t border-base-content/10'>
<Button
type='button'
@@ -743,6 +744,7 @@ const DeliveryOrderFormModal = ({
</Button>
</div>
)}
{step === 3 && null}
</div>
</>
)}