Skip to content

Commit

Permalink
Merge branch 'refactor-country-props' of github.com:juspay/hyperswitc…
Browse files Browse the repository at this point in the history
…h-web into refactor-country-props
  • Loading branch information
Pritish Budhiraja committed Apr 18, 2024
2 parents 2233ab1 + 22ba3a6 commit edc3161
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [0.42.6](https://github.com/juspay/hyperswitch-web/compare/v0.42.5...v0.42.6) (2024-04-17)


### Bug Fixes

* mandate data pass hide checkbox ([#308](https://github.com/juspay/hyperswitch-web/issues/308)) ([51c98ab](https://github.com/juspay/hyperswitch-web/commit/51c98abc4da2438195cfbb7e418bf7f47f800008))

## [0.42.5](https://github.com/juspay/hyperswitch-web/compare/v0.42.4...v0.42.5) (2024-04-17)

## [0.42.4](https://github.com/juspay/hyperswitch-web/compare/v0.42.3...v0.42.4) (2024-04-17)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orca-payment-page",
"version": "0.42.5",
"version": "0.42.6",
"main": "index.js",
"private": true,
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions src/Payments/CardPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,14 @@ let make = (
let paymentMethod = isBancontact ? "bank_redirect" : "card"
let paymentMethodType = isBancontact ? "bancontact_card" : "debit"
let conditionsForShowingSaveCardCheckbox =
list.mandate_payment->Option.isNone &&
!isGuestCustomer &&
list.payment_type !== SETUP_MANDATE &&
options.displaySavedPaymentMethodsCheckbox &&
!isBancontact

let nicknameFieldClassName = conditionsForShowingSaveCardCheckbox ? "pt-2" : "pt-5"

Js.log2("sdvjnsddsjd", (list.mandate_payment, options.terms.card))

<div className="animate-slowShow">
<RenderIf condition={showFields || isBancontact}>
<div
Expand Down

0 comments on commit edc3161

Please sign in to comment.