@@ -88,7 +88,7 @@ const ChallengeViewTabs = ({
8888 const isDraft = challenge . status . toUpperCase ( ) === CHALLENGE_STATUS . DRAFT
8989 const isSelfServiceCopilot = challenge . legacy . selfServiceCopilot === loggedInUser . handle
9090 const isAdmin = checkAdmin ( token )
91- const canApprove = isSelfServiceCopilot && isDraft && isSelfService
91+ const canApprove = ( isSelfServiceCopilot || enableEdit ) && isDraft && isSelfService
9292 const hasBillingAccount = _ . get ( projectDetail , 'billingAccountId' ) !== null
9393 // only challenges that have a billing account can be launched AND
9494 // if this isn't self-service, permit launching if the challenge is draft
@@ -97,7 +97,7 @@ const ChallengeViewTabs = ({
9797 // b) the challenge is approved
9898 const canLaunch = hasBillingAccount &&
9999 ( ( ! isSelfService && isDraft ) ||
100- ( ( isSelfServiceCopilot || isAdmin ) &&
100+ ( ( isSelfServiceCopilot || enableEdit || isAdmin ) &&
101101 challenge . status . toUpperCase ( ) === CHALLENGE_STATUS . APPROVED ) )
102102
103103 return (
@@ -168,10 +168,10 @@ const ChallengeViewTabs = ({
168168 ) }
169169 </ div >
170170 ) }
171- { enableEdit && ! isSelfService && (
171+ { enableEdit && (
172172 < PrimaryButton text = { 'Edit' } type = { 'info' } submit link = { `./edit` } />
173173 ) }
174- { isSelfService && isDraft && ( isAdmin || isSelfServiceCopilot ) && (
174+ { isSelfService && isDraft && ( isAdmin || isSelfServiceCopilot || enableEdit ) && (
175175 < div className = { styles . button } >
176176 < PrimaryButton
177177 text = 'Reject challenge'
0 commit comments