mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 15:25:46 +00:00
refactor(FE): Update approval logic and conditional rendering in
delivery forms
This commit is contained in:
@@ -430,7 +430,8 @@ const DeliveryOrderFormModal = ({
|
||||
const isPending = useMemo(() => {
|
||||
return (
|
||||
isResponseSuccess(marketing) &&
|
||||
marketing.data.latest_approval.step_number === 1
|
||||
marketing.data.latest_approval.step_number === 1 &&
|
||||
marketing.data.latest_approval.action === 'PENDING'
|
||||
);
|
||||
}, [marketing]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user