Skip to content

Commit

Permalink
Merge branch 'phone-number-validations' of github.com:juspay/hyperswi…
Browse files Browse the repository at this point in the history
…tch-web into phone-number-validations
  • Loading branch information
Pritish Budhiraja committed Apr 23, 2024
2 parents af61102 + 5a77010 commit 762e20f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [0.44.1](https://github.com/juspay/hyperswitch-web/compare/v0.44.0...v0.44.1) (2024-04-19)


### Bug Fixes

* whitelist 127.0.0.1 for local dev ([#316](https://github.com/juspay/hyperswitch-web/issues/316)) ([7212181](https://github.com/juspay/hyperswitch-web/commit/7212181ca57e1d49eca3feda1c6ba7a5746cebeb))

# [0.44.0](https://github.com/juspay/hyperswitch-web/compare/v0.43.5...v0.44.0) (2024-04-19)


### Features

* normal mandate changes ([#314](https://github.com/juspay/hyperswitch-web/issues/314)) ([0ce1540](https://github.com/juspay/hyperswitch-web/commit/0ce1540623ddbb95c76cb12217e05eccd7ff537a))

## [0.43.5](https://github.com/juspay/hyperswitch-web/compare/v0.43.4...v0.43.5) (2024-04-18)


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.43.5",
"version": "0.44.1",
"main": "index.js",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/SavedMethods.res
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ let make = (
useSubmitPaymentData(submitCallback)

let conditionsForShowingSaveCardCheckbox = React.useMemo(() => {
!isGuestCustomer && list.payment_type !== SETUP_MANDATE && displaySavedPaymentMethodsCheckbox
!isGuestCustomer && list.payment_type === NEW_MANDATE && displaySavedPaymentMethodsCheckbox
}, (isGuestCustomer, list.payment_type, displaySavedPaymentMethodsCheckbox))

<div className="flex flex-col overflow-auto h-auto no-scrollbar animate-slowShow">
Expand Down
5 changes: 4 additions & 1 deletion src/orca-loader/Hyper.res
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ let make = (publishableKey, options: option<JSON.t>, analyticsInfo: option<JSON.
}
}->Sentry.sentryLogger
let isSecure = Window.protocol === "https:"
let isLocal = GlobalVars.sdkUrl->String.includes("localhost")
let isLocal =
["localhost", "127.0.0.1"]
->Array.find(url => Window.hostname->String.includes(url))
->Option.isSome
if !isSecure && !isLocal {
manageErrorWarning(HTTP_NOT_ALLOWED, ~dynamicStr=Window.href, ~logger, ())
Exn.raiseError("Insecure domain: " ++ Window.href)
Expand Down

0 comments on commit 762e20f

Please sign in to comment.