Skip to content

Commit

Permalink
fix(submit btn): fix submit btn activation logic (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw authored Nov 15, 2023
1 parent b6b1ee3 commit ad2635c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/verifyRegistration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,9 @@ export const VerifyRegistration = ({
return null
}

const hasRoles = () => {
return true
}
const hasDocuments = () => {
return documents && documents.length > 0 ? true : false
}
const hasRoles = () => registrationData.companyRoles.length > 0

const hasDocuments = () => documents && documents.length > 0

return (
<>
Expand Down Expand Up @@ -254,7 +251,6 @@ export const VerifyRegistration = ({
handleBackClick={() => backClick()}
handleNextClick={() => nextClick()}
tooltip={getTooltip()}
helpUrl={'/documentation/?path=docs%2F01.+Onboarding%2F02.+Registration%2F06.+Verify+Registration+Data.md'}
/>
</>
)
Expand Down

0 comments on commit ad2635c

Please sign in to comment.