We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9068ecf + c158f07 commit da26c68Copy full SHA for da26c68
apps/app/src/app/(app)/[orgId]/policies/[policyId]/components/UpdatePolicyOverview.tsx
@@ -180,7 +180,7 @@ export function UpdatePolicyOverview({
180
// Determine button text based on status and form interaction
181
let buttonText = 'Save';
182
if (
183
- (policy.status === 'draft' && selectedStatus !== 'draft') ||
+ (policy.status === 'draft' && selectedStatus === 'published') ||
184
(policy.status === 'published' && hasFormChanges)
185
) {
186
buttonText = 'Submit for Approval';
0 commit comments