Skip to content

Commit

Permalink
Merge branch 'main' into feat/merchant-domain-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja authored Jul 18, 2024
2 parents 9fc0999 + e026108 commit 5936e2e
Show file tree
Hide file tree
Showing 4 changed files with 16 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.76.2](https://github.com/juspay/hyperswitch-web/compare/v0.76.1...v0.76.2) (2024-07-18)


### Bug Fixes

* **payout:** handle tab order updates ([#505](https://github.com/juspay/hyperswitch-web/issues/505)) ([5bdbd74](https://github.com/juspay/hyperswitch-web/commit/5bdbd744570ebf34acf1bb00036383722ad4a73c))

## [0.76.1](https://github.com/juspay/hyperswitch-web/compare/v0.76.0...v0.76.1) (2024-07-17)

# [0.76.0](https://github.com/juspay/hyperswitch-web/compare/v0.75.0...v0.76.0) (2024-07-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.76.1",
"version": "0.76.2",
"main": "index.js",
"private": true,
"dependencies": {
Expand Down
8 changes: 6 additions & 2 deletions src/CollectWidget.res
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,16 @@ let make = (
}

let handleTabSelection = selectedPMT => {
if availablePaymentMethodTypes->Array.indexOf(selectedPMT) >= defaultOptionsLimitInTabLayout {
if (
availablePaymentMethodTypesOrdered->Array.indexOf(selectedPMT) >=
defaultOptionsLimitInTabLayout
) {
// Move the selected payment method at the last tab position
let ordList = availablePaymentMethodTypes->Array.reduceWithIndex([], (acc, pmt, i) => {
if i === defaultOptionsLimitInTabLayout - 1 {
acc->Array.push(selectedPMT)
} else if pmt !== selectedPMT {
}
if pmt !== selectedPMT {
acc->Array.push(pmt)
}
acc
Expand Down

0 comments on commit 5936e2e

Please sign in to comment.