Skip to content

Commit

Permalink
fix: redirect issue (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
prafulkoppalkar authored Jun 7, 2024
1 parent 80f7393 commit a984498
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/orca-loader/Hyper.res
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,7 @@ let make = (publishableKey, options: option<JSON.t>, analyticsInfo: option<JSON.
->Option.flatMap(x => x->Dict.get("confirmParams"))
->Option.getOr(Dict.make()->JSON.Encode.object)

let redirect =
payload
->getDictFromJson
->getDictfromDict("confirmParams")
->getString("redirect", "if_required")
let redirect = payload->getDictFromJson->getString("redirect", "if_required")

let url =
confirmParams
Expand Down

0 comments on commit a984498

Please sign in to comment.