Skip to content

Commit da26c68

Browse files
authored
Merge pull request #1048 from trycompai/mariano/fix-assignee-policies
[dev] [Marfuen] mariano/fix-assignee-policies
2 parents 9068ecf + c158f07 commit da26c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/app/src/app/(app)/[orgId]/policies/[policyId]/components/UpdatePolicyOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export function UpdatePolicyOverview({
180180
// Determine button text based on status and form interaction
181181
let buttonText = 'Save';
182182
if (
183-
(policy.status === 'draft' && selectedStatus !== 'draft') ||
183+
(policy.status === 'draft' && selectedStatus === 'published') ||
184184
(policy.status === 'published' && hasFormChanges)
185185
) {
186186
buttonText = 'Submit for Approval';

0 commit comments

Comments
 (0)