Skip to content

Conversation

@kanikabansal08
Copy link
Collaborator

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Motivation and Context

How did you test it?

Where to test it?

  • INTEG
  • SANDBOX
  • PROD

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@kanikabansal08 kanikabansal08 requested a review from a team as a code owner January 19, 2026 18:42
@semanticdiff-com
Copy link

Review changes with  SemanticDiff

@kanikabansal08 kanikabansal08 self-assigned this Jan 20, 2026
@muditbhutani muditbhutani merged commit ccbc34a into main Jan 28, 2026
4 of 10 checks passed
@muditbhutani muditbhutani deleted the bankdebit-pmt-fix branch January 28, 2026 06:20
@github-actions github-actions bot added the Closed Applied to issues or pull requests that have been successfully resolved or completed label Jan 28, 2026
@Riddhiagrawal001
Copy link
Contributor

Theres one issue thats happening

steps to replicate :

  • create a connector with same connector label
  • check any bank debit pm with plaid click on proceed
  • it will land back to step 1 . Change the connector label / or not change
  • and then go to next step Bacs is still selected (ideally should be deselected as for other pmts ) and after that the drop-down becomes disabled
Screen.Recording.2026-01-28.at.12.10.49.PM.mov

Comment on lines +592 to +596
let handleCheckboxClick = _ => {
if paymentMethod->getPaymentMethodFromString === BankDebit {
removeOrAddMethods(value)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this function out

Comment on lines +578 to 589
if paymentMethod->getPaymentMethodFromString !== BankDebit {
removeOrAddMethods(value)
}

if showSideModal(value.payment_method_type->getPaymentMethodTypeFromString) {
if (
showAdditionalDetails(
value.payment_method_type->getPaymentMethodTypeFromString,
)
) {
setSelectedWallet(_ => value)
}
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also move this out

("payment_method", paymentMethod->JSON.Encode.string),
("payment_method_types", [methodJson]->JSON.Encode.array),
]
->Dict.fromArray
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use LogicUtils

let pmDict = pmJson->getDictFromJsonObject
let pmMethod = pmDict->getString("payment_method", "")->String.toLowerCase

if pmMethod === targetMethod {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use type values to check rather than string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Closed Applied to issues or pull requests that have been successfully resolved or completed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants