Skip to content

Commit

Permalink
Merge pull request #39786 from bernhardoj/fix/38920-user-can-skip-nam…
Browse files Browse the repository at this point in the history
…e-form

Fix user can skip legal name form in workspace bank account page
  • Loading branch information
grgia authored Apr 9, 2024
2 parents 1073b33 + 6d870fc commit dc13543
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const personalInfoKeys = INPUT_IDS.PERSONAL_INFO_STEP;
* Returns the initial substep for the Personal Info step based on already existing data
*/
function getInitialSubstepForPersonalInfo(data: RequestorStepProps): number {
if (data[personalInfoKeys.FIRST_NAME] === '' && data[personalInfoKeys.LAST_NAME] === '') {
if (data[personalInfoKeys.FIRST_NAME] === '' || data[personalInfoKeys.LAST_NAME] === '') {
return 0;
}

Expand Down

0 comments on commit dc13543

Please sign in to comment.