Skip to content

Commit

Permalink
Merge pull request #253 from jpmorgan-payments/feature/packages-refac…
Browse files Browse the repository at this point in the history
…toring

Refactor BusinessOwnerStepForm to fix conditional logic bug
  • Loading branch information
hyunghoseo authored Jan 14, 2025
2 parents bdaeb3d + b203e8e commit 1fc6aa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export const BusinessOwnerStepForm = () => {

const onSubmit = (values: BusinessOwner) => {
if (clientId) {
if (currentDecisionMakerId) {
if (!currentDecisionMakerId) {
const requestBody = generateRequestBody(values, 0, 'addParties', {
addParties: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ AdditionalQuestions.args = {
AdditionalQuestions.parameters = WithClientId.parameters;

export const ReviewAndAttest = Default.bind({});
ReviewAndAttest.storyName = '5. Review and Attest step';
ReviewAndAttest.storyName = '6. Review and Attest step';
ReviewAndAttest.args = {
...WithClientId.args,
blockPostVerification: true,
Expand Down Expand Up @@ -215,7 +215,7 @@ ReviewAndAttest.parameters = {

export const AdditionalDocumentsRequested = Default.bind({});
AdditionalDocumentsRequested.storyName =
'6. Additional Documents requested step';
'7. Additional Documents requested step';
AdditionalDocumentsRequested.args = {
...WithClientId.args,
blockPostVerification: true,
Expand Down

0 comments on commit 1fc6aa0

Please sign in to comment.