Skip to content

Commit

Permalink
fixed deepscan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Nov 20, 2024
1 parent 4ccb625 commit 91b9ad2
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,19 @@ export const SigningAuthority = ({ handleStepChange, openReachOutToUs, saveData

const setStates = (states: any) => {
const { signing_authority, submitter } = states;
let name;
let firstName;
let lastName;
if (signing_authority?.name) {
name = signing_authority?.name.split(' ');
firstName = signing_authority?.name?.split(' ')[0];
lastName = signing_authority?.name?.split(' ')[1];

Check warning on line 181 in src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx

View check run for this annotation

Codecov / codecov/patch

src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx#L180-L181

Added lines #L180 - L181 were not covered by tests
}

setSubmitterFirstName(submitter?.first_name);
setSubmitterLastName(submitter?.last_name);

Check warning on line 185 in src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx

View check run for this annotation

Codecov / codecov/patch

src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx#L184-L185

Added lines #L184 - L185 were not covered by tests
setSubmitterEmail(submitter?.email);
setSubmitterDesignation(submitter?.designation);

Check warning on line 187 in src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx

View check run for this annotation

Codecov / codecov/patch

src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx#L187

Added line #L187 was not covered by tests
setSigningAuthorityFirstName(name[0] || '');
setSigningAuthorityLastName(name[1] || '');
setSigningAuthorityFirstName(firstName || '');
setSigningAuthorityLastName(lastName || '');
setSigningAuthorityDesignation(signing_authority?.designation);
setSigningAuthorityEmail(signing_authority?.email);
setPermissions({ support_staff_account: false, terms_agreed: false });
Expand Down

0 comments on commit 91b9ad2

Please sign in to comment.